]> gitweb.fluxo.info Git - puppet-syslog-ng.git/commitdiff
Adding thanks comment for strip IP regexp
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 15 Feb 2011 17:47:32 +0000 (15:47 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 15 Feb 2011 17:47:32 +0000 (15:47 -0200)
templates/syslog-ng.conf_squeeze.erb

index 39cec76001b2198eb6d486b4f769971f2104472a..5780889395f64eabcf30fcf375e40528a8ae9267 100644 (file)
@@ -49,6 +49,7 @@ destination df_facility_dot_crit   { file("/var/log/$FACILITY.crit");   };
 ## generic filters and rewrites
 
 # strip IP addresses
+# regexp thanks to micah and dsyslog
 rewrite r_strip {subst("(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])([\\.\\-](25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])){3}", "0.0.0.0", value("MESSAGE"), flags("global"));};
 
 filter f_at_least_info   { level(info..emerg);   };