From 5ec956fff566417c5ce4380299f3875fe7e127e8 Mon Sep 17 00:00:00 2001 From: Andy Ning Date: Tue, 16 Jul 2019 12:15:30 -0400 Subject: [PATCH] dcdbsync for containerized openstack services - logging This updates syslog-ng configuration for logging of openstack dcdbsync instance. Story: 2004766 Task: 36097 Change-Id: If72df22b9200445f95a6894df73fad1cfffa7944 Signed-off-by: Andy Ning --- config-files/syslog-ng-config/centos/build_srpm.data | 2 +- config-files/syslog-ng-config/files/syslog-ng.conf | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config-files/syslog-ng-config/centos/build_srpm.data b/config-files/syslog-ng-config/centos/build_srpm.data index 7430271ca..aba1d8c1c 100644 --- a/config-files/syslog-ng-config/centos/build_srpm.data +++ b/config-files/syslog-ng-config/centos/build_srpm.data @@ -1,2 +1,2 @@ SRC_DIR="files" -TIS_PATCH_VER=4 +TIS_PATCH_VER=5 diff --git a/config-files/syslog-ng-config/files/syslog-ng.conf b/config-files/syslog-ng-config/files/syslog-ng.conf index 5a491924e..43a406723 100644 --- a/config-files/syslog-ng-config/files/syslog-ng.conf +++ b/config-files/syslog-ng-config/files/syslog-ng.conf @@ -147,7 +147,7 @@ destination d_sysinvapi { file("/var/log/sysinv-api.log" template(t_openstack) p destination d_dcmanager { file("/var/log/dcmanager/dcmanager.log" template(t_openstack)); }; destination d_dcorch { file("/var/log/dcorch/dcorch.log" template(t_openstack)); }; destination d_dcdbsync { file("/var/log/dcdbsync/dcdbsync.log" template(t_openstack)); }; - +destination d_dcdbsync_openstack { file("/var/log/dcdbsync/dcdbsync_openstack.log" template(t_openstack)); }; # Openstack Log destinations destination d_horizon { file("/var/log/horizon.log" template(t_openstack) perm(0640)); }; @@ -319,6 +319,7 @@ filter f_dcorchsnmp { facility(local2) and program(dcorch-snmp); }; filter f_dcorchapiproxy { facility(local2) and program(dcorch-api-proxy); }; filter f_dcdbsyncapi { facility(local2) and program(dcdbsync-api); }; +filter f_dcdbsyncopenstackapi { facility(local3) and program(dcdbsync-api); }; # Openstack Log Filters filter f_horizon { facility(local7) }; @@ -402,6 +403,7 @@ log {source(s_src); filter(f_dcorchengine); destination(d_dcorch); }; log {source(s_src); filter(f_dcorchsnmp); destination(d_dcorch); }; log {source(s_src); filter(f_dcorchapiproxy); destination(d_dcorch); }; log {source(s_src); filter(f_dcdbsyncapi); destination(d_dcdbsync); }; +log {source(s_src); filter(f_dcdbsyncopenstackapi); destination(d_dcdbsync_openstack); }; # Openstack Log Paths log { source(s_src); filter(f_horizon); destination(d_horizon); };