X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=templates%2Fsyslog-ng.conf.erb;h=3d64384dc937102ad90d156e604884bd142527ef;hb=0c486ef5fc44fccfab7b3089bbf7dc6d1d710742;hp=637250b7b822e6be475b01ac049cf999d067f86e;hpb=a2755641cae03dc0ce58f3986df91e3deca61070;p=mirror%2Fdsa-puppet.git diff --git a/templates/syslog-ng.conf.erb b/templates/syslog-ng.conf.erb index 637250b7b..3d64384dc 100644 --- a/templates/syslog-ng.conf.erb +++ b/templates/syslog-ng.conf.erb @@ -83,7 +83,7 @@ options { source s_all { # message generated by Syslog-NG internal(); -<% if $kernel == 'Linux' %> +<% if kernel == 'Linux' %> # standard Linux log source (this is the default place for the syslog() # function to send logs to) unix-stream("/dev/log"); @@ -138,10 +138,12 @@ destination df_news_dot_crit { file("/var/log/news/news.crit" owner("news")); }; destination df_debug { file("/var/log/debug"); }; destination df_messages { file("/var/log/messages"); }; +<% if kernel == 'Linux' %> # pipes # a console to view log messages under X destination dp_xconsole { pipe("/dev/xconsole"); }; +<% end %> # consoles # this will send messages to everyone logged in destination du_all { usertty("*"); }; @@ -190,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) @@ -198,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 @@ -347,6 +350,7 @@ log { }; +<% if kernel == 'Linux' %> # daemon.*;mail.*;\ # news.crit;news.err;news.notice;\ # *.=debug;*.=info;\ @@ -356,4 +360,4 @@ log { filter(f_xconsole); destination(dp_xconsole); }; - +<%end%>