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