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