source: trunk/server/fedora/config/etc/syslog-ng/syslog-ng.conf @ 1849

Last change on this file since 1849 was 1259, checked in by mitchb, 15 years ago
Reintegrate branches/fc11-dev (r1121:1258) to trunk
File size: 2.5 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
37destination d_zroot { program("/etc/syslog-ng/d_zroot.pl"); };
38#destination d_watch { program("/usr/local/libexec/watch-syslog.py"); };
39
40#filter f_kernel     { facility(kern); };
41filter f_default    { level(info..emerg) and
42                        not (facility(mail)
43                        or facility(authpriv)
44                        or facility(cron)); };
45filter f_auth       { facility(authpriv); };
46filter f_mail       { facility(mail); };
47filter f_emergency  { level(emerg); };
48filter f_news       { facility(uucp) or
49                        (facility(news)
50                        and level(crit..emerg)); };
51filter f_boot   { facility(local7); };
52filter f_cron   { facility(cron); };
53
54filter f_oom { facility(kern) and (match("Out of memory:") or match("Killed process")); };
55
56#log { source(s_sys); filter(f_kernel); destination(d_cons); };
57#log { source(s_sys); filter(f_kernel); destination(d_kern); };
58log { source(s_sys); filter(f_default); destination(d_mesg); };
59log { source(s_sys); filter(f_auth); destination(d_auth); };
60log { source(s_sys); filter(f_mail); destination(d_mail); };
61log { source(s_sys); filter(f_emergency); destination(d_mlal); };
62log { source(s_sys); filter(f_news); destination(d_spol); };
63log { source(s_sys); filter(f_boot); destination(d_boot); };
64log { source(s_sys); filter(f_cron); destination(d_cron); };
65
66log { source(s_sys); filter(f_auth); destination(d_zroot); };
67#log { source(s_sys); filter(f_default); destination(d_watch); };
68log { source(s_sys); filter(f_oom); destination(d_zroot); };
69
70# vim:ft=syslog-ng:ai:si:ts=4:sw=4:et:
Note: See TracBrowser for help on using the repository browser.