Contents of /trunk/syslog-ng/syslog-ng.conf
Parent Directory | Revision Log
Revision 153 -
(show annotations)
(download)
Tue May 8 20:52:56 2007 UTC (17 years, 4 months ago) by niro
File size: 4044 byte(s)
Tue May 8 20:52:56 2007 UTC (17 years, 4 months ago) by niro
File size: 4044 byte(s)
-import
1 | # |
2 | # Syslog-ng configuration file |
3 | # |
4 | |
5 | # Global options: |
6 | |
7 | options { sync(0); |
8 | time_reopen(10); |
9 | log_fifo_size(1000); |
10 | long_hostnames(off); |
11 | use_dns(no); |
12 | use_fqdn(no); |
13 | create_dirs(no); |
14 | keep_hostname(yes); |
15 | owner("root"); |
16 | group("adm"); |
17 | perm(0640); |
18 | }; |
19 | |
20 | |
21 | |
22 | # Sources : |
23 | |
24 | source src { unix-stream("/dev/log"); |
25 | internal(); |
26 | pipe("/proc/kmsg"); |
27 | }; |
28 | |
29 | # If you wish to get logs from remote machine you should uncomment |
30 | # this and comment the above source line. |
31 | # |
32 | #source net { tcp(ip(127.0.0.1) port(1000) authentication(required) encrypt(allow));}; |
33 | |
34 | |
35 | |
36 | # Destinations: |
37 | |
38 | # standart logfiles |
39 | destination auth { file("/var/log/auth.log"); }; |
40 | destination syslog { file("/var/log/syslog"); }; |
41 | destination cron { file("/var/log/cron.log"); }; |
42 | destination daemon { file("/var/log/daemon.log"); }; |
43 | destination kern { file("/var/log/kern.log"); }; |
44 | destination lpr { file("/var/log/lpr.log"); }; |
45 | destination user { file("/var/log/user.log"); }; |
46 | destination uucp { file("/var/log/uucp.log"); }; |
47 | destination mail { file("/var/log/mail.log"); }; |
48 | |
49 | # mail subsystem logfiles |
50 | destination mailinfo { file("/var/log/mail.info"); }; |
51 | destination mailwarn { file("/var/log/mail.warn"); }; |
52 | destination mailerr { file("/var/log/mail.err"); }; |
53 | |
54 | # news subsystem logfiles |
55 | destination newscrit { file("/var/log/news/news.crit"); }; |
56 | destination newserr { file("/var/log/news/news.err"); }; |
57 | destination newsnotice { file("/var/log/news/news.notice"); }; |
58 | |
59 | |
60 | # catch-all logfiles |
61 | destination debug { file("/var/log/debug"); }; |
62 | destination error { file("/var/log/error"); }; |
63 | destination messages { file("/var/log/messages"); }; |
64 | destination everything { file("/var/log/everything"); }; |
65 | |
66 | |
67 | destination console { usertty("root"); }; |
68 | destination console_all { file("/dev/tty12"); }; |
69 | |
70 | |
71 | |
72 | # Filters: |
73 | |
74 | filter f_auth { facility(auth); }; |
75 | filter f_authpriv { facility(auth, authpriv); }; |
76 | filter f_syslog { not facility(authpriv, mail); }; |
77 | filter f_cron { facility(cron); }; |
78 | filter f_daemon { facility(daemon); }; |
79 | filter f_kern { facility(kern); }; |
80 | filter f_lpr { facility(lpr); }; |
81 | filter f_mail { facility(mail); }; |
82 | filter f_news { facility(news); }; |
83 | filter f_user { facility(user); }; |
84 | filter f_uucp { facility(uucp); }; |
85 | filter f_debug { not facility(auth, authpriv, news, mail); }; |
86 | filter f_messages { level(info..warn) and not facility(auth, authpriv, mail, news); }; |
87 | filter f_everything { level(debug..emerg) and not facility(auth, authpriv); }; |
88 | |
89 | filter f_emergency { level(emerg); }; |
90 | filter f_info { level(info); }; |
91 | filter f_notice { level(notice); }; |
92 | filter f_warn { level(warn); }; |
93 | filter f_crit { level(crit); }; |
94 | filter f_err { level(err); }; |
95 | filter f_error { level(err .. emerg); }; |
96 | |
97 | |
98 | # Log pathes: |
99 | |
100 | log { source(src); filter(f_authpriv); destination(auth); }; |
101 | log { source(src); filter(f_syslog); destination(syslog); }; |
102 | log { source(src); filter(f_cron); destination(cron); }; |
103 | log { source(src); filter(f_daemon); destination(daemon); }; |
104 | log { source(src); filter(f_kern); destination(kern); }; |
105 | log { source(src); filter(f_lpr); destination(lpr); }; |
106 | log { source(src); filter(f_user); destination(user); }; |
107 | log { source(src); filter(f_uucp); destination(uucp); }; |
108 | |
109 | |
110 | log { source(src); filter(f_mail); destination(mail); }; |
111 | log { source(src); filter(f_mail); filter(f_info); destination(mailinfo); }; |
112 | log { source(src); filter(f_mail); filter(f_warn); destination(mailwarn); }; |
113 | log { source(src); filter(f_mail); filter(f_err); destination(mailerr); }; |
114 | |
115 | log { source(src); filter(f_news); filter(f_crit); destination(newscrit); }; |
116 | log { source(src); filter(f_news); filter(f_err); destination(newserr); }; |
117 | log { source(src); filter(f_news); filter(f_notice); destination(newsnotice); }; |
118 | |
119 | log { source(src); filter(f_debug); destination(debug); }; |
120 | log { source(src); filter(f_error); destination(error); }; |
121 | log { source(src); filter(f_messages); destination(messages); }; |
122 | log { source(src); filter(f_everything); destination(everything); }; |
123 | |
124 | log { source(src); filter(f_emergency); destination(console); }; |
125 | log { source(src); destination(console_all); }; |