From ee87c7a5132822f44a17975141bde041ca93c268 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 15 Feb 2011 15:47:32 -0200 Subject: Adding thanks comment for strip IP regexp --- templates/syslog-ng.conf_squeeze.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/syslog-ng.conf_squeeze.erb b/templates/syslog-ng.conf_squeeze.erb index 39cec76..5780889 100644 --- a/templates/syslog-ng.conf_squeeze.erb +++ b/templates/syslog-ng.conf_squeeze.erb @@ -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); }; -- cgit v1.2.3