source: branches/fc15-dev/server/fedora/config/etc/syslog-ng/syslog-ng.conf @ 1874

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