Annotation of /trunk/syslog-ng/syslog-ng.conf
Parent Directory | Revision Log
Revision 909 -
(hide annotations)
(download)
Wed Oct 28 00:35:18 2009 UTC (15 years ago) by niro
File size: 3941 byte(s)
Wed Oct 28 00:35:18 2009 UTC (15 years ago) by niro
File size: 3941 byte(s)
be compat with 3.0
1 | niro | 153 | # |
2 | # Syslog-ng configuration file | ||
3 | # | ||
4 | |||
5 | # Global options: | ||
6 | |||
7 | niro | 909 | options { flush_lines(0); |
8 | niro | 153 | 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 | niro | 909 | file("/proc/kmsg"); |
27 | niro | 153 | }; |
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 cron { file("/var/log/cron.log"); }; | ||
41 | destination daemon { file("/var/log/daemon.log"); }; | ||
42 | destination kern { file("/var/log/kern.log"); }; | ||
43 | destination lpr { file("/var/log/lpr.log"); }; | ||
44 | destination user { file("/var/log/user.log"); }; | ||
45 | destination uucp { file("/var/log/uucp.log"); }; | ||
46 | destination mail { file("/var/log/mail.log"); }; | ||
47 | |||
48 | # mail subsystem logfiles | ||
49 | destination mailinfo { file("/var/log/mail.info"); }; | ||
50 | destination mailwarn { file("/var/log/mail.warn"); }; | ||
51 | destination mailerr { file("/var/log/mail.err"); }; | ||
52 | |||
53 | # news subsystem logfiles | ||
54 | destination newscrit { file("/var/log/news/news.crit"); }; | ||
55 | destination newserr { file("/var/log/news/news.err"); }; | ||
56 | destination newsnotice { file("/var/log/news/news.notice"); }; | ||
57 | |||
58 | |||
59 | # catch-all logfiles | ||
60 | destination debug { file("/var/log/debug"); }; | ||
61 | destination error { file("/var/log/error"); }; | ||
62 | destination messages { file("/var/log/messages"); }; | ||
63 | destination everything { file("/var/log/everything"); }; | ||
64 | |||
65 | |||
66 | destination console { usertty("root"); }; | ||
67 | destination console_all { file("/dev/tty12"); }; | ||
68 | |||
69 | |||
70 | |||
71 | # Filters: | ||
72 | |||
73 | filter f_auth { facility(auth); }; | ||
74 | filter f_authpriv { facility(auth, authpriv); }; | ||
75 | filter f_syslog { not facility(authpriv, mail); }; | ||
76 | filter f_cron { facility(cron); }; | ||
77 | filter f_daemon { facility(daemon); }; | ||
78 | filter f_kern { facility(kern); }; | ||
79 | filter f_lpr { facility(lpr); }; | ||
80 | filter f_mail { facility(mail); }; | ||
81 | filter f_news { facility(news); }; | ||
82 | filter f_user { facility(user); }; | ||
83 | filter f_uucp { facility(uucp); }; | ||
84 | filter f_debug { not facility(auth, authpriv, news, mail); }; | ||
85 | filter f_messages { level(info..warn) and not facility(auth, authpriv, mail, news); }; | ||
86 | filter f_everything { level(debug..emerg) and not facility(auth, authpriv); }; | ||
87 | |||
88 | filter f_emergency { level(emerg); }; | ||
89 | filter f_info { level(info); }; | ||
90 | filter f_notice { level(notice); }; | ||
91 | filter f_warn { level(warn); }; | ||
92 | filter f_crit { level(crit); }; | ||
93 | filter f_err { level(err); }; | ||
94 | filter f_error { level(err .. emerg); }; | ||
95 | |||
96 | |||
97 | # Log pathes: | ||
98 | |||
99 | log { source(src); filter(f_authpriv); destination(auth); }; | ||
100 | log { source(src); filter(f_cron); destination(cron); }; | ||
101 | log { source(src); filter(f_daemon); destination(daemon); }; | ||
102 | log { source(src); filter(f_kern); destination(kern); }; | ||
103 | log { source(src); filter(f_lpr); destination(lpr); }; | ||
104 | log { source(src); filter(f_user); destination(user); }; | ||
105 | log { source(src); filter(f_uucp); destination(uucp); }; | ||
106 | |||
107 | |||
108 | log { source(src); filter(f_mail); destination(mail); }; | ||
109 | log { source(src); filter(f_mail); filter(f_info); destination(mailinfo); }; | ||
110 | log { source(src); filter(f_mail); filter(f_warn); destination(mailwarn); }; | ||
111 | log { source(src); filter(f_mail); filter(f_err); destination(mailerr); }; | ||
112 | |||
113 | log { source(src); filter(f_news); filter(f_crit); destination(newscrit); }; | ||
114 | log { source(src); filter(f_news); filter(f_err); destination(newserr); }; | ||
115 | log { source(src); filter(f_news); filter(f_notice); destination(newsnotice); }; | ||
116 | |||
117 | log { source(src); filter(f_debug); destination(debug); }; | ||
118 | log { source(src); filter(f_error); destination(error); }; | ||
119 | log { source(src); filter(f_messages); destination(messages); }; | ||
120 | log { source(src); filter(f_everything); destination(everything); }; | ||
121 | |||
122 | log { source(src); filter(f_emergency); destination(console); }; | ||
123 | log { source(src); destination(console_all); }; |