]> git.pld-linux.org Git - packages/syslog-ng.git/blame - syslog-ng.conf
- rel 1
[packages/syslog-ng.git] / syslog-ng.conf
CommitLineData
9bb5922e 1#
e8348a61 2# Syslog-ng configuration for PLD Linux
9bb5922e 3#
e8348a61 4# See syslog-ng(8) and syslog-ng.conf(5) for more information.
9bb5922e 5#
6
e8348a61
JR
7options {
8 long_hostnames(off);
9 sync(0);
10 owner(root);
11 group(logs);
12 perm(0640);
13};
14
15source s_sys {
87578fa1 16 pipe ("/proc/kmsg" log_prefix("kernel: "));
6999305b 17 unix-stream("/dev/log" max-connections(1000));
e8348a61 18 internal();
e8348a61 19};
9bb5922e 20
bc57df04 21# uncomment the line below if you want to setup syslog server
e8348a61 22#source s_net { udp(); };
69f7f14f 23
e8348a61 24#destination loghost { udp("loghost" port(514)); };
69f7f14f
JR
25
26destination kern { file("/var/log/kernel"); };
27destination messages { file("/var/log/messages"); };
28destination authlog { file("/var/log/secure"); };
29destination mail { file("/var/log/maillog"); };
30destination uucp { file("/var/log/spooler"); };
69f7f14f 31destination debug { file("/var/log/debug"); };
e8348a61
JR
32destination cron { file("/var/log/cron" owner(root) group(crontab) perm(0660)); };
33destination syslog { file("/var/log/syslog"); };
34destination daemon { file("/var/log/daemon"); };
35destination lpr { file("/var/log/lpr"); };
36destination user { file("/var/log/user"); };
37destination ppp { file("/var/log/ppp"); };
38destination ftp { file("/var/log/xferlog"); };
39destination audit { file("/var/log/audit"); };
40destination postgres { file("/var/log/pgsql"); };
41destination freshclam { file("/var/log/freshclam.log"); };
42
43# Log iptables messages to separate file
44destination iptables { file("/var/log/iptables"); };
45
69f7f14f 46destination console { usertty("root"); };
93386b4c 47#destination console_all { file("/dev/tty12"); };
69f7f14f
JR
48
49destination xconsole { pipe("/dev/xconsole"); };
50
2ed0e42e 51destination newscrit { file("/var/log/news/news.crit" owner(news) group(news)); };
21fda14b
JR
52destination newserr { file("/var/log/news/news.err" owner(news) group(news)); };
53destination newsnotice { file("/var/log/news/news.notice" owner(news) group(news)); };
69f7f14f 54
e8348a61 55# Filters for standard syslog(3) facilities
87578fa1 56#filter f_audit { facility(audit); };
e8348a61 57filter f_authpriv { facility(authpriv, auth); };
bc57df04 58filter f_cron { facility(cron); };
69f7f14f 59filter f_daemon { facility(daemon); };
e8348a61 60filter f_ftp { facility(ftp); };
bc57df04 61filter f_kern { facility(kern); };
69f7f14f
JR
62filter f_lpr { facility(lpr); };
63filter f_mail { facility(mail); };
e8348a61
JR
64filter f_news { facility(news); };
65filter f_syslog { facility(syslog); };
69f7f14f 66filter f_user { facility(user); };
e4b58b62 67filter f_uucp { facility(uucp); };
e8348a61
JR
68filter f_local0 { facility(local0); };
69filter f_local1 { facility(local1); };
70filter f_local2 { facility(local2); };
71filter f_local3 { facility(local3); };
72filter f_local4 { facility(local4); };
73filter f_local5 { facility(local5); };
74filter f_local6 { facility(local6); };
75filter f_local7 { facility(local7); };
76
c1e06d27 77# Filters for standard syslog(3) priorities
69f7f14f
JR
78filter p_debug { level(debug); };
79filter p_info { level(info); };
80filter p_notice { level(notice); };
81filter p_warn { level(warn); };
82filter p_err { level(err); };
83filter p_alert { level(alert); };
84filter p_crit { level(crit); };
85filter p_emergency { level(emerg); };
86
e8348a61
JR
87# Additional filters for specific programs/use
88filter f_freshclam { program(freshclam); };
89filter f_ppp { program(pppd) or program(chat); };
90filter f_postgres { program(postgres); };
91filter f_iptables { match("IN=[A-Za-z0-9]* OUT=[A-Za-z0-9]*"); };
92
87578fa1
JR
93log { source(s_sys); filter(f_authpriv); destination(authlog); };
94log { source(s_sys); filter(f_cron); destination(cron); };
95log { source(s_sys); filter(f_daemon); destination(daemon); };
96log { source(s_sys); filter(f_ftp); destination(ftp); };
97log { source(s_sys); filter(f_kern); destination(kern); };
98log { source(s_sys); filter(f_lpr); destination(lpr); };
e8348a61 99log { source(s_sys); filter(f_mail); destination(mail); };
e8348a61
JR
100log { source(s_sys); filter(f_news); filter(p_crit); destination(uucp); };
101log { source(s_sys); filter(f_news); filter(p_crit); destination(newscrit); };
102log { source(s_sys); filter(f_news); filter(p_err); destination(newserr); };
103log { source(s_sys); filter(f_news); filter(p_warn); destination(newsnotice); };
104log { source(s_sys); filter(f_news); filter(p_notice); destination(newsnotice); };
105log { source(s_sys); filter(f_news); filter(p_info); destination(newsnotice); };
106log { source(s_sys); filter(f_news); filter(p_debug); destination(newsnotice); };
87578fa1
JR
107log { source(s_sys); filter(f_syslog); destination(syslog); };
108log { source(s_sys); filter(f_user); destination(user); };
109log { source(s_sys); filter(f_uucp); destination(uucp); };
e8348a61 110
87578fa1 111log { source(s_sys); filter(p_debug); destination(debug); };
e8348a61
JR
112
113log { source(s_sys); filter(f_daemon); filter(f_ppp); destination(ppp); };
114log { source(s_sys); filter(f_local6); filter(f_freshclam); destination(freshclam); };
115log { source(s_sys); filter(f_local0); filter(f_postgres); destination(postgres); };
116#log { source(s_sys); filter(f_iptables); destination(iptables); };
117
118log { source(s_sys); filter(p_emergency); destination(console); };
119#log { source(s_sys); destination(console_all); };
bc57df04
JB
120
121# This is a catchall statement, and should catch all messages which were not
87578fa1
JR
122# accepted any of the previous statements.
123log { source(s_sys); destination(messages); flags(fallback); };
e8348a61 124
87578fa1 125# Network syslogging
e8348a61 126#log { source(s_sys); destination(loghost); };
This page took 0.102277 seconds and 4 git commands to generate.