Magellan Linux

Annotation of /trunk/syslog-ng/syslog-ng.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 910 - (hide annotations) (download)
Wed Oct 28 00:40:32 2009 UTC (14 years, 6 months ago) by niro
File size: 3955 byte(s)
fixed missing version tag

1 niro 910 @version: 3.0
2 niro 153 #
3     # Syslog-ng configuration file
4     #
5    
6     # Global options:
7    
8 niro 909 options { flush_lines(0);
9 niro 153 time_reopen(10);
10     log_fifo_size(1000);
11     long_hostnames(off);
12     use_dns(no);
13     use_fqdn(no);
14     create_dirs(no);
15     keep_hostname(yes);
16     owner("root");
17     group("adm");
18     perm(0640);
19     };
20    
21    
22    
23     # Sources :
24    
25     source src { unix-stream("/dev/log");
26     internal();
27 niro 909 file("/proc/kmsg");
28 niro 153 };
29    
30     # If you wish to get logs from remote machine you should uncomment
31     # this and comment the above source line.
32     #
33     #source net { tcp(ip(127.0.0.1) port(1000) authentication(required) encrypt(allow));};
34    
35    
36    
37     # Destinations:
38    
39     # standart logfiles
40     destination auth { file("/var/log/auth.log"); };
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_cron); destination(cron); };
102     log { source(src); filter(f_daemon); destination(daemon); };
103     log { source(src); filter(f_kern); destination(kern); };
104     log { source(src); filter(f_lpr); destination(lpr); };
105     log { source(src); filter(f_user); destination(user); };
106     log { source(src); filter(f_uucp); destination(uucp); };
107    
108    
109     log { source(src); filter(f_mail); destination(mail); };
110     log { source(src); filter(f_mail); filter(f_info); destination(mailinfo); };
111     log { source(src); filter(f_mail); filter(f_warn); destination(mailwarn); };
112     log { source(src); filter(f_mail); filter(f_err); destination(mailerr); };
113    
114     log { source(src); filter(f_news); filter(f_crit); destination(newscrit); };
115     log { source(src); filter(f_news); filter(f_err); destination(newserr); };
116     log { source(src); filter(f_news); filter(f_notice); destination(newsnotice); };
117    
118     log { source(src); filter(f_debug); destination(debug); };
119     log { source(src); filter(f_error); destination(error); };
120     log { source(src); filter(f_messages); destination(messages); };
121     log { source(src); filter(f_everything); destination(everything); };
122    
123     log { source(src); filter(f_emergency); destination(console); };
124     log { source(src); destination(console_all); };