4 # /etc/syslog-ng/syslog-ng.conf
11 log_fifo_size (10000);
12 chain_hostnames (off);
27 destination d_authlog { file("/var/log/auth.log"); };
28 destination d_syslog { file("/var/log/syslog.log"); };
29 destination d_cron { file("/var/log/crond.log"); };
30 destination d_daemon { file("/var/log/daemon.log"); };
31 destination d_kernel { file("/var/log/kernel.log"); };
32 destination d_lpr { file("/var/log/lpr.log"); };
33 destination d_user { file("/var/log/user.log"); };
34 destination d_uucp { file("/var/log/uucp.log"); };
35 destination d_mail { file("/var/log/mail.log"); };
36 destination d_news { file("/var/log/news.log"); };
37 destination d_ppp { file("/var/log/ppp.log"); };
38 destination d_debug { file("/var/log/debug.log"); };
39 destination d_messages { file("/var/log/messages.log"); };
40 destination d_errors { file("/var/log/errors.log"); };
41 destination d_everything { file("/var/log/everything.log"); };
42 destination d_iptables { file("/var/log/iptables.log"); };
43 destination d_acpid { file("/var/log/acpid.log"); };
44 destination d_console { usertty("root"); };
46 # Log everything to tty12
47 destination console_all { file("/dev/tty12"); };
49 filter f_auth { facility(auth); };
50 filter f_authpriv { facility(auth, authpriv); };
51 filter f_syslog { program(syslog-ng); };
52 filter f_cron { facility(cron); };
53 filter f_daemon { facility(daemon); };
54 filter f_kernel { facility(kern) and not filter(f_iptables); };
55 filter f_lpr { facility(lpr); };
56 filter f_mail { facility(mail); };
57 filter f_news { facility(news); };
58 filter f_user { facility(user); };
59 filter f_uucp { facility(uucp); };
60 filter f_ppp { facility(local2); };
61 filter f_debug { not facility(auth, authpriv, news, mail); };
62 filter f_messages { level(info..warn) and not facility(auth, authpriv, mail, news, cron) and not program(syslog-ng) and not filter(f_iptables); };
63 filter f_everything { level(debug..emerg) and not facility(auth, authpriv); };
64 filter f_emergency { level(emerg); };
65 filter f_info { level(info); };
66 filter f_notice { level(notice); };
67 filter f_warn { level(warn); };
68 filter f_crit { level(crit); };
69 filter f_err { level(err); };
70 filter f_iptables { match("IN=" value("MESSAGE")) and match("OUT=" value("MESSAGE")); };
71 filter f_acpid { program("acpid"); };
73 log { source(src); filter(f_acpid); destination(d_acpid); };
74 log { source(src); filter(f_authpriv); destination(d_authlog); };
75 log { source(src); filter(f_syslog); destination(d_syslog); };
76 log { source(src); filter(f_cron); destination(d_cron); };
77 log { source(src); filter(f_daemon); destination(d_daemon); };
78 log { source(src); filter(f_kernel); destination(d_kernel); };
79 log { source(src); filter(f_lpr); destination(d_lpr); };
80 log { source(src); filter(f_mail); destination(d_mail); };
81 log { source(src); filter(f_news); destination(d_news); };
82 log { source(src); filter(f_ppp); destination(d_ppp); };
83 log { source(src); filter(f_user); destination(d_user); };
84 log { source(src); filter(f_uucp); destination(d_uucp); };
85 #log { source(src); filter(f_debug); destination(d_debug); };
86 log { source(src); filter(f_messages); destination(d_messages); };
87 log { source(src); filter(f_err); destination(d_errors); };
88 log { source(src); filter(f_emergency); destination(d_console); };
89 log { source(src); filter(f_everything); destination(d_everything); };
90 log { source(src); filter(f_iptables); destination(d_iptables); };
92 # Log everything to tty12
93 #log { source(src); destination(console_all); };