]> git.pld-linux.org Git - packages/syslog-ng.git/blame - syslog-ng.conf
- 3.3.5
[packages/syslog-ng.git] / syslog-ng.conf
CommitLineData
3daf9956 1@version: 3.3
9bb5922e 2#
e8348a61 3# Syslog-ng configuration for PLD Linux
9bb5922e 4#
e8348a61 5# See syslog-ng(8) and syslog-ng.conf(5) for more information.
9bb5922e 6#
7
e8348a61 8options {
641e857d 9 flush_lines(0);
e8348a61
JR
10 owner(root);
11 group(logs);
12 perm(0640);
641e857d
JR
13 create_dirs(yes);
14 dir_owner(root);
15 dir_group(logs);
16 dir_perm(0750);
17 stats_freq(3600);
18 time_reopen(10);
19 time_reap(360);
20 mark_freq(600);
3daf9956 21 threaded(yes);
e8348a61
JR
22};
23
24source s_sys {
ca352cc2 25 file ("/proc/kmsg" program_override("kernel"));
436f396a 26 unix-stream("/dev/log" max-connections(1000) log_iw_size(100000));
ceb76f95
JR
27# if using systemd, comment out the two line above, and uncomment line below
28# unix-dgram("/run/systemd/journal/syslog");
e8348a61 29 internal();
e8348a61 30};
9bb5922e 31
bc57df04 32# uncomment the line below if you want to setup syslog server
e8348a61 33#source s_net { udp(); };
69f7f14f 34
ceb76f95 35# if using systemd, an IP address instead of name may be required here
d241bcb3
AM
36#destination d_loghost { udp("loghost" port(514)); };
37
38destination d_kern { file("/var/log/kernel"); };
39destination d_messages { file("/var/log/messages"); };
40destination d_authlog { file("/var/log/secure"); };
41destination d_mail { file("/var/log/maillog"); };
42destination d_uucp { file("/var/log/spooler"); };
43destination d_debug { file("/var/log/debug"); };
44destination d_cron { file("/var/log/cron" owner(root) group(crontab) perm(0660)); };
45destination d_syslog { file("/var/log/syslog"); };
46destination d_daemon { file("/var/log/daemon"); };
47destination d_lpr { file("/var/log/lpr"); };
48destination d_user { file("/var/log/user"); };
49destination d_ppp { file("/var/log/ppp"); };
50destination d_ftp { file("/var/log/xferlog"); };
51destination d_audit { file("/var/log/audit"); };
52destination d_postgres { file("/var/log/pgsql"); };
53destination d_freshclam { file("/var/log/freshclam.log"); };
e8348a61
JR
54
55# Log iptables messages to separate file
d241bcb3 56destination d_iptables { file("/var/log/iptables"); };
e8348a61 57
d241bcb3
AM
58destination d_console { usertty("root"); };
59#destination d_console_all { file("/dev/tty12"); };
69f7f14f 60
d241bcb3 61destination d_xconsole { pipe("/dev/xconsole"); };
69f7f14f 62
d241bcb3
AM
63destination d_newscrit { file("/var/log/news/news.crit" owner(news) group(news)); };
64destination d_newserr { file("/var/log/news/news.err" owner(news) group(news)); };
65destination d_newsnotice { file("/var/log/news/news.notice" owner(news) group(news)); };
69f7f14f 66
e8348a61 67# Filters for standard syslog(3) facilities
87578fa1 68#filter f_audit { facility(audit); };
e8348a61 69filter f_authpriv { facility(authpriv, auth); };
bc57df04 70filter f_cron { facility(cron); };
69f7f14f 71filter f_daemon { facility(daemon); };
e8348a61 72filter f_ftp { facility(ftp); };
bc57df04 73filter f_kern { facility(kern); };
69f7f14f
JR
74filter f_lpr { facility(lpr); };
75filter f_mail { facility(mail); };
e8348a61
JR
76filter f_news { facility(news); };
77filter f_syslog { facility(syslog); };
69f7f14f 78filter f_user { facility(user); };
e4b58b62 79filter f_uucp { facility(uucp); };
e8348a61
JR
80filter f_local0 { facility(local0); };
81filter f_local1 { facility(local1); };
82filter f_local2 { facility(local2); };
83filter f_local3 { facility(local3); };
84filter f_local4 { facility(local4); };
85filter f_local5 { facility(local5); };
86filter f_local6 { facility(local6); };
87filter f_local7 { facility(local7); };
88
c1e06d27 89# Filters for standard syslog(3) priorities
69f7f14f
JR
90filter p_debug { level(debug); };
91filter p_info { level(info); };
92filter p_notice { level(notice); };
93filter p_warn { level(warn); };
94filter p_err { level(err); };
95filter p_alert { level(alert); };
96filter p_crit { level(crit); };
97filter p_emergency { level(emerg); };
98
e8348a61
JR
99# Additional filters for specific programs/use
100filter f_freshclam { program(freshclam); };
101filter f_ppp { program(pppd) or program(chat); };
102filter f_postgres { program(postgres); };
17cfc336 103filter f_iptables { match("IN=[A-Za-z0-9\.]* OUT=[A-Za-z0-9\.]*" value("MESSAGE")); };
e8348a61 104
d241bcb3
AM
105log { source(s_sys); filter(f_authpriv); destination(d_authlog); };
106log { source(s_sys); filter(f_cron); destination(d_cron); };
107log { source(s_sys); filter(f_daemon); destination(d_daemon); };
108log { source(s_sys); filter(f_ftp); destination(d_ftp); };
109log { source(s_sys); filter(f_kern); destination(d_kern); };
110log { source(s_sys); filter(f_lpr); destination(d_lpr); };
111log { source(s_sys); filter(f_mail); destination(d_mail); };
112log { source(s_sys); filter(f_news); filter(p_crit); destination(d_uucp); };
113log { source(s_sys); filter(f_news); filter(p_crit); destination(d_newscrit); };
114log { source(s_sys); filter(f_news); filter(p_err); destination(d_newserr); };
115log { source(s_sys); filter(f_news); filter(p_warn); destination(d_newsnotice); };
116log { source(s_sys); filter(f_news); filter(p_notice); destination(d_newsnotice); };
117log { source(s_sys); filter(f_news); filter(p_info); destination(d_newsnotice); };
118log { source(s_sys); filter(f_news); filter(p_debug); destination(d_newsnotice); };
119log { source(s_sys); filter(f_syslog); destination(d_syslog); };
120log { source(s_sys); filter(f_user); destination(d_user); };
121log { source(s_sys); filter(f_uucp); destination(d_uucp); };
122
123log { source(s_sys); filter(p_debug); destination(d_debug); };
124
125log { source(s_sys); filter(f_daemon); filter(f_ppp); destination(d_ppp); };
126log { source(s_sys); filter(f_local6); filter(f_freshclam); destination(d_freshclam); };
127log { source(s_sys); filter(f_local0); filter(f_postgres); destination(d_postgres); };
128#log { source(s_sys); filter(f_iptables); destination(d_iptables); };
129
130log { source(s_sys); filter(p_emergency); destination(d_console); };
131#log { source(s_sys); destination(d_console_all); };
bc57df04
JB
132
133# This is a catchall statement, and should catch all messages which were not
87578fa1 134# accepted any of the previous statements.
d241bcb3 135log { source(s_sys); destination(d_messages); flags(fallback); };
e8348a61 136
87578fa1 137# Network syslogging
d241bcb3 138#log { source(s_sys); destination(d_loghost); };
This page took 0.064859 seconds and 4 git commands to generate.