+##
+## 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
#
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");
<%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%>
};
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("*"); };
# 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)
and level(crit,err,notice));
};
-
+<% end %>
######
# logs
# order matters if you use "flags(final);" to mark the end of processing in a
};
+<% if kernel == 'Linux' %>
# daemon.*;mail.*;\
# news.crit;news.err;news.notice;\
# *.=debug;*.=info;\
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%>