1
# syslog-ng configuration file.
3
# This should behave pretty much like the original syslog on RedHat. But
4
# it could be configured a lot smarter.
6
# See syslog-ng(8) and syslog-ng.conf(5) for more information.
8
# 20000925 gb@sysfive.com
10
# Updated by Frank Crawford (<Frank.Crawford@ac3.com.au>) - 10 Aug 2002
12
# - totally do away with klogd
13
# - add message "kernel:" as is done with klogd.
15
# Updated by Frank Crawford (<Frank.Crawford@ac3.com.au>) - 22 Aug 2002
16
# - use the log_prefix option as per Balazs Scheidler's email
18
# Updated by Jose Pedro Oliveira (<jpo at di.uminho.pt>) - 05 Apr 2003
19
# - corrected filters 'f_filter2' and 'f_filter6'
20
# these filters were only allowing messages of one specific
21
# priority level; they should be allowing messages from that
22
# priority and upper levels.
24
# Updated by Jose Pedro Oliveira (<jpo at di.uminho.pt>) - 25 Jan 2005
25
# - Don't sync the d_mail destination
27
# Updated by Jose Pedro Oliveira (<jpo at di.uminho.pt>) - 01 Feb 2005
28
# - /proc/kmsg is a file not a pipe.
29
# (https://lists.balabit.hu/pipermail/syslog-ng/2005-February/006963.html)
44
file ("/proc/kmsg" log_prefix("kernel: "));
45
unix-stream ("/dev/log");
47
# udp(ip(0.0.0.0) port(514));
50
destination d_cons { file("/dev/console"); };
51
destination d_mesg { file("/var/log/messages"); };
52
destination d_auth { file("/var/log/secure"); };
53
destination d_mail { file("/var/log/maillog" sync(10)); };
54
destination d_spol { file("/var/log/spooler"); };
55
destination d_boot { file("/var/log/boot.log"); };
56
destination d_cron { file("/var/log/cron"); };
57
destination d_mlal { usertty("*"); };
59
#filter f_filter1 { facility(kern); };
60
filter f_filter2 { level(info..emerg) and
61
not facility(mail,authpriv,cron); };
62
filter f_filter3 { facility(authpriv); };
63
filter f_filter4 { facility(mail); };
64
filter f_filter5 { level(emerg); };
65
filter f_filter6 { facility(uucp) or
66
(facility(news) and level(crit..emerg)); };
67
filter f_filter7 { facility(local7); };
68
filter f_filter8 { facility(cron); };
70
#log { source(s_sys); filter(f_filter1); destination(d_cons); };
71
log { source(s_sys); filter(f_filter2); destination(d_mesg); };
72
log { source(s_sys); filter(f_filter3); destination(d_auth); };
73
log { source(s_sys); filter(f_filter4); destination(d_mail); };
74
log { source(s_sys); filter(f_filter5); destination(d_mlal); };
75
log { source(s_sys); filter(f_filter6); destination(d_spol); };
76
log { source(s_sys); filter(f_filter7); destination(d_boot); };
77
log { source(s_sys); filter(f_filter8); destination(d_cron); };