1 |
|
@version: 3.0 |
2 |
# |
# |
3 |
# Syslog-ng configuration file |
# Syslog-ng configuration file |
4 |
# |
# |
5 |
|
|
6 |
# Global options: |
# Global options: |
7 |
|
|
8 |
options { sync(0); |
options { flush_lines(0); |
9 |
time_reopen(10); |
time_reopen(10); |
10 |
log_fifo_size(1000); |
log_fifo_size(1000); |
11 |
long_hostnames(off); |
long_hostnames(off); |
24 |
|
|
25 |
source src { unix-stream("/dev/log"); |
source src { unix-stream("/dev/log"); |
26 |
internal(); |
internal(); |
27 |
pipe("/proc/kmsg"); |
file("/proc/kmsg"); |
28 |
}; |
}; |
29 |
|
|
30 |
# If you wish to get logs from remote machine you should uncomment |
# If you wish to get logs from remote machine you should uncomment |
38 |
|
|
39 |
# standart logfiles |
# standart logfiles |
40 |
destination auth { file("/var/log/auth.log"); }; |
destination auth { file("/var/log/auth.log"); }; |
|
destination syslog { file("/var/log/syslog"); }; |
|
41 |
destination cron { file("/var/log/cron.log"); }; |
destination cron { file("/var/log/cron.log"); }; |
42 |
destination daemon { file("/var/log/daemon.log"); }; |
destination daemon { file("/var/log/daemon.log"); }; |
43 |
destination kern { file("/var/log/kern.log"); }; |
destination kern { file("/var/log/kern.log"); }; |
98 |
# Log pathes: |
# Log pathes: |
99 |
|
|
100 |
log { source(src); filter(f_authpriv); destination(auth); }; |
log { source(src); filter(f_authpriv); destination(auth); }; |
|
log { source(src); filter(f_syslog); destination(syslog); }; |
|
101 |
log { source(src); filter(f_cron); destination(cron); }; |
log { source(src); filter(f_cron); destination(cron); }; |
102 |
log { source(src); filter(f_daemon); destination(daemon); }; |
log { source(src); filter(f_daemon); destination(daemon); }; |
103 |
log { source(src); filter(f_kern); destination(kern); }; |
log { source(src); filter(f_kern); destination(kern); }; |