1 From 78029f7aa8f8231fc657a094f41fb4ae1baba95e Mon Sep 17 00:00:00 2001
2 From: Jackie Huang <jackie.huang@windriver.com>
3 Date: Sat, 28 Mar 2020 22:53:47 +0800
4 Subject: [PATCH] syslog-ng.conf: replace match with message
7 WARNING: the match() filter without the use of the value() option is
8 deprecated and hinders performance, please use a more specific filter
9 like message() and/or program() instead;
10 location='/etc/syslog-ng/syslog-ng.conf:255:80'
11 [2020-03-26T09:55:01.825267] WARNING: With use-dns(no), dns-cache()
12 will be forced to 'no' too!;
14 Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
16 syslog-ng-config/files/syslog-ng.conf | 14 +++++++-------
17 1 file changed, 7 insertions(+), 7 deletions(-)
19 diff --git a/syslog-ng-config/files/syslog-ng.conf b/syslog-ng-config/files/syslog-ng.conf
20 index 1e06c02..7373031 100644
21 --- a/syslog-ng-config/files/syslog-ng.conf
22 +++ b/syslog-ng-config/files/syslog-ng.conf
23 @@ -252,7 +252,7 @@ filter f_newsnotice { facility(news) and filter(f_notice); };
24 #filter f_syslog3 { not facility(auth, authpriv, mail) and not filter(f_debug); };
25 filter f_syslog { facility(syslog); };
26 filter f_user { facility(user) and not filter(f_vim) and not filter(f_vim_api)
27 - and not filter(f_vim_webserver) and not match("fmClientCli");
28 + and not filter(f_vim_webserver) and not message("fmClientCli");
29 and not program("^(-)?(ba)?(su|sh)$"); };
30 filter f_uucp { facility(uucp); };
32 @@ -303,12 +303,12 @@ filter f_fm_event { facility(local5) and program(fmManager); };
33 filter f_fm_manager { facility(local1) and program(fmManager); };
36 -filter f_ima { facility(auth) and program(audispd) and match("type=INTEGRITY_") ; };
37 -filter f_ima_appraise { filter(f_ima) and match("appraise_data") ; };
38 +filter f_ima { facility(auth) and program(audispd) and message("type=INTEGRITY_") ; };
39 +filter f_ima_appraise { filter(f_ima) and message("appraise_data") ; };
42 -filter f_sysinv { facility(local6) and program(sysinv) and not match("sysinv.api.hooks.auditor"); };
43 -filter f_sysinvapi { facility(local6) and program(sysinv) and match("sysinv.api.hooks.auditor"); };
44 +filter f_sysinv { facility(local6) and program(sysinv) and not message("sysinv.api.hooks.auditor"); };
45 +filter f_sysinvapi { facility(local6) and program(sysinv) and message("sysinv.api.hooks.auditor"); };
47 # Distributed Cloud Log Filters
48 filter f_dcmanagermanager { facility(local2) and program(dcmanager-manager); };
49 @@ -324,8 +324,8 @@ filter f_dcdbsyncopenstackapi { facility(local3) and program(dcdbsync-api); }
50 # Openstack Log Filters
51 filter f_horizon { facility(local7) };
52 filter f_libvirtd { program(libvirtd) };
53 -filter f_keystoneall { facility(local2) and message("keystone.*") and not match("keystone.common.wsgi"); };
54 -filter f_keystoneapi { facility(local2) and match("keystone.common.wsgi"); };
55 +filter f_keystoneall { facility(local2) and message("keystone.*") and not message("keystone.common.wsgi"); };
56 +filter f_keystoneapi { facility(local2) and message("keystone.common.wsgi"); };
57 filter f_barbicanapi { facility(local2) and program(barbican-api); };
58 filter f_barbicandbsync { facility(local2) and program(barbican-dbsync); };
59 filter f_barbicankeystonelistener { facility(local2) and program(barbican-keystone-listener); };