summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-02-15 15:47:32 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-02-15 15:47:32 -0200
commitee87c7a5132822f44a17975141bde041ca93c268 (patch)
treecb48ba7fe5223e79c74f8fa96706554221ca614e
parent6bc0621aef3b28a49abf720c12ff2d5764b7de8f (diff)
downloadpuppet-syslog-ng-ee87c7a5132822f44a17975141bde041ca93c268.tar.gz
puppet-syslog-ng-ee87c7a5132822f44a17975141bde041ca93c268.tar.bz2
Adding thanks comment for strip IP regexp
-rw-r--r--templates/syslog-ng.conf_squeeze.erb1
1 files changed, 1 insertions, 0 deletions
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); };