Filippo Giunchedi has submitted this change and it was merged.

Change subject: syslog-ng: filter out swift noise
......................................................................


syslog-ng: filter out swift noise

namely the spammy "handoff requested" (fixed in newer upstream) and GET/HEAD
requests which don't change state

Change-Id: Ida16acf1de0e2c182bec9e9d5fb37f60464667d8
---
M templates/syslog-ng/syslog-ng.conf.nfs.erb
1 file changed, 10 insertions(+), 0 deletions(-)

Approvals:
  Filippo Giunchedi: Verified; Looks good to me, approved
  Giuseppe Lavagetto: Looks good to me, but someone else must approve



diff --git a/templates/syslog-ng/syslog-ng.conf.nfs.erb 
b/templates/syslog-ng/syslog-ng.conf.nfs.erb
index ea98fd9..fada207 100644
--- a/templates/syslog-ng/syslog-ng.conf.nfs.erb
+++ b/templates/syslog-ng/syslog-ng.conf.nfs.erb
@@ -394,6 +394,14 @@
        ;
 };
 
+filter f_nojunk_swift {
+       not (
+               match("Handoff requested" value("MESSAGE")) or
+               match("GET /" value("MESSAGE")) or
+               match("HEAD /" value("MESSAGE"))
+       );
+};
+
 # Remote syslog
 log {
        source(s_remote);
@@ -406,6 +414,7 @@
 # OpenSwift related
 log {
        source(s_remote);
+       filter(f_nojunk_swift);
        filter(f_swift);
        destination(df_swift);
 };
@@ -413,6 +422,7 @@
 log {
        source(s_remote);
        filter(f_nojunk);
+       filter(f_nojunk_swift);
        destination(df_remote);
        flags(fallback, final);
 };

-- 
To view, visit https://gerrit.wikimedia.org/r/164524
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ida16acf1de0e2c182bec9e9d5fb37f60464667d8
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <[email protected]>
Gerrit-Reviewer: Alexandros Kosiaris <[email protected]>
Gerrit-Reviewer: Faidon Liambotis <[email protected]>
Gerrit-Reviewer: Filippo Giunchedi <[email protected]>
Gerrit-Reviewer: Giuseppe Lavagetto <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to