source: branches/fc11-dev/server/fedora/config/etc/syslog-ng/syslog-ng.conf @ 1155

Last change on this file since 1155 was 1155, checked in by mitchb, 14 years ago
Update for current version of syslog-ng.conf Mostly reformatting, but also uses more meaningful names for the default set of filters
File size: 2.3 KB
Line 
1# syslog-ng configuration file.
2#
3# This should behave pretty much like the original syslog on RedHat. But
4# it could be configured a lot smarter.
5#
6# See syslog-ng(8) and syslog-ng.conf(5) for more information.
7#
8
9options {
10        sync (0);
11        time_reopen (10);
12        log_fifo_size (1000);
13        long_hostnames (off);
14        use_dns (no);
15        use_fqdn (no);
16        create_dirs (no);
17        keep_hostname (yes);
18};
19
20source s_sys {
21        file ("/proc/kmsg" log_prefix("kernel: "));
22        unix-stream ("/dev/log");
23        internal();
24        # udp(ip(0.0.0.0) port(514));
25};
26
27destination d_cons { file("/dev/console"); };
28destination d_mesg { file("/var/log/messages"); };
29destination d_auth { file("/var/log/secure"); };
30destination d_mail { file("/var/log/maillog" sync(10)); };
31destination d_spol { file("/var/log/spooler"); };
32destination d_boot { file("/var/log/boot.log"); };
33destination d_cron { file("/var/log/cron"); };
34#destination d_kern { file("/var/log/kern"); };
35destination d_mlal { usertty("*"); };
36
37#filter f_kernel     { facility(kern); };
38filter f_default    { level(info..emerg) and
39                        not (facility(mail)
40                        or facility(authpriv)
41                        or facility(cron)); };
42filter f_auth       { facility(authpriv); };
43filter f_mail       { facility(mail); };
44filter f_emergency  { level(emerg); };
45filter f_news       { facility(uucp) or
46                        (facility(news)
47                        and level(crit..emerg)); };
48filter f_boot   { facility(local7); };
49filter f_cron   { facility(cron); };
50
51filter f_oom { facility(kern) and (match("Out of memory:") or match("Killed process")); };
52
53#log { source(s_sys); filter(f_kernel); destination(d_cons); };
54#log { source(s_sys); filter(f_kernel); destination(d_kern); };
55log { source(s_sys); filter(f_default); destination(d_mesg); };
56log { source(s_sys); filter(f_auth); destination(d_auth); };
57log { source(s_sys); filter(f_mail); destination(d_mail); };
58log { source(s_sys); filter(f_emergency); destination(d_mlal); };
59log { source(s_sys); filter(f_news); destination(d_spol); };
60log { source(s_sys); filter(f_boot); destination(d_boot); };
61log { source(s_sys); filter(f_cron); destination(d_cron); };
62
63log { source(s_sys); filter(f_auth); destination(d_zroot); };
64#log { source(s_sys); filter(f_default); destination(d_watch); };
65log { source(s_sys); filter(f_oom); destination(d_zroot); };
66
67# vim:ft=syslog-ng:ai:si:ts=4:sw=4:et:
Note: See TracBrowser for help on using the repository browser.