X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=templates%2Fsyslog-ng.conf.erb;h=3d64384dc937102ad90d156e604884bd142527ef;hb=b917b8c84b95b0a0d78a78334738cc9a3a95784d;hp=bb66d300b116a60488b85626785626dfd61d7836;hpb=c1e7c8f0dbbfaf406209a21d13cf752712562ba8;p=mirror%2Fdsa-puppet.git diff --git a/templates/syslog-ng.conf.erb b/templates/syslog-ng.conf.erb index bb66d300b..3d64384dc 100644 --- a/templates/syslog-ng.conf.erb +++ b/templates/syslog-ng.conf.erb @@ -192,6 +192,7 @@ filter f_messages { # messages with priority emerg filter f_emerg { level(emerg); }; +<% if kernel == 'Linux' %> # complex filter for messages usually sent to the xconsole filter f_xconsole { facility(daemon,mail) @@ -200,7 +201,7 @@ filter f_xconsole { and level(crit,err,notice)); }; - +<% end %> ###### # logs # order matters if you use "flags(final);" to mark the end of processing in a @@ -349,6 +350,7 @@ log { }; +<% if kernel == 'Linux' %> # daemon.*;mail.*;\ # news.crit;news.err;news.notice;\ # *.=debug;*.=info;\ @@ -358,4 +360,4 @@ log { filter(f_xconsole); destination(dp_xconsole); }; - +<%end%>