X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=templates%2Fsyslog-ng.conf.erb;h=c903ced4feaf3e922415d00c4f541fb38e409598;hb=0b75d6cc7907ec14efbd94465b251bb1e416cc2f;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..c903ced4f 100644 --- a/templates/syslog-ng.conf.erb +++ b/templates/syslog-ng.conf.erb @@ -1,3 +1,8 @@ +## +## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE. +## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git +## + # # Configuration file for syslog-ng under Debian # @@ -98,7 +103,9 @@ source s_all { <%end%> # use the following line if you want to receive remote UDP logging messages # (this is equivalent to the "-r" syslogd flag) - # udp(); +<% if hostname == "paganini" -%> + udp(); +<%end%> }; @@ -192,6 +199,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 +208,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 +357,7 @@ log { }; +<% if kernel == 'Linux' %> # daemon.*;mail.*;\ # news.crit;news.err;news.notice;\ # *.=debug;*.=info;\ @@ -358,4 +367,15 @@ log { filter(f_xconsole); destination(dp_xconsole); }; +<%end%> + +<% if hostname == "corelli" -%> +destination loghost-paganini { + udp("192.168.2.10",port(514)); +}; +log { + source(s_all); + destination(loghost-paganini); +}; +<%end%>