|
| 1 | +syslog_ng: |
| 2 | + options: |
| 3 | + - chain_hostnames: no |
| 4 | + - flush_lines: 0 |
| 5 | + - use_dns: no |
| 6 | + - use_fqdn: no |
| 7 | + - owner: root |
| 8 | + - group: adm |
| 9 | + - perm: =0640 |
| 10 | + - stats_freq: 0 |
| 11 | + - bad_hostname: "^gconfd$" |
| 12 | + |
| 13 | + source: |
| 14 | + - s_src: |
| 15 | + - system: null |
| 16 | + - internal: null |
| 17 | + |
| 18 | + destination: |
| 19 | + # First some standard logfile |
| 20 | + - d_auth: |
| 21 | + - file: |
| 22 | + - /var/log/auth.log |
| 23 | + - d_cron: |
| 24 | + - file: |
| 25 | + - /var/log/cron.log |
| 26 | + - d_daemon: |
| 27 | + - file: |
| 28 | + - /var/log/daemon.log |
| 29 | + - d_kern: |
| 30 | + - file: |
| 31 | + - /var/log/kern.log |
| 32 | + - d_lpr: |
| 33 | + - file: |
| 34 | + - /var/log/lpr.log |
| 35 | + - d_mail: |
| 36 | + - file: |
| 37 | + - /var/log/mail.log |
| 38 | + - d_syslog: |
| 39 | + - file: |
| 40 | + - /var/log/syslog |
| 41 | + - d_user: |
| 42 | + - file: |
| 43 | + - /var/log/user.log |
| 44 | + - d_uucp: |
| 45 | + - file: |
| 46 | + - /var/log/uucp.log |
| 47 | + |
| 48 | + # This files are the log come from the mail subsystem. |
| 49 | + - d_mailinfo: |
| 50 | + - file: |
| 51 | + - /var/log/mail.info |
| 52 | + - d_mailwarn: |
| 53 | + - file: |
| 54 | + - /var/log/mail.warn |
| 55 | + - d_mailerr: |
| 56 | + - file: |
| 57 | + - /var/log/mail.err |
| 58 | + |
| 59 | + # Logging for INN news system |
| 60 | + - d_newscrit: |
| 61 | + - file: |
| 62 | + - /var/log/news/news.crit |
| 63 | + - d_newserr: |
| 64 | + - file: |
| 65 | + - /var/log/news/news.err |
| 66 | + - d_newsnotice: |
| 67 | + - file: |
| 68 | + - /var/log/news/news.notice |
| 69 | + |
| 70 | + # Some 'catch-all' logfiles |
| 71 | + - d_debug: |
| 72 | + - file: |
| 73 | + - /var/log/debug |
| 74 | + - d_error: |
| 75 | + - file: |
| 76 | + - /var/log/error |
| 77 | + - d_messages: |
| 78 | + - file: |
| 79 | + - /var/log/messages |
| 80 | + |
| 81 | + # The root's console. |
| 82 | + - d_console: |
| 83 | + - usertty: |
| 84 | + - root |
| 85 | + |
| 86 | + # Virtual console. |
| 87 | + - d_console_all: |
| 88 | + - file: |
| 89 | + - '`tty10`' |
| 90 | + |
| 91 | + # The named pipe /dev/xconsole is for the nsole' utility. |
| 92 | + - d_xconsole: |
| 93 | + - pipe: |
| 94 | + - /dev/xconsole |
| 95 | + |
| 96 | + # Debian only |
| 97 | + - d_ppp: |
| 98 | + - file: |
| 99 | + - /var/log/ppp.log |
| 100 | + |
| 101 | + filter: |
| 102 | + - f_dbg: |
| 103 | + - level: =debug |
| 104 | + - f_info: |
| 105 | + - level: =info |
| 106 | + - f_notice: |
| 107 | + - level: =notice |
| 108 | + - f_warn: |
| 109 | + - level: =warn |
| 110 | + - f_err: |
| 111 | + - level: =err |
| 112 | + - f_crit: |
| 113 | + - level: =crit .. emerg |
| 114 | + - f_error: |
| 115 | + - level: =err .. emerg |
| 116 | + - f_console: |
| 117 | + - level: =warn .. emerg |
| 118 | + |
| 119 | + - f_debug: |
| 120 | + - =level(debug) and not facility(auth, authpriv, news, mail) |
| 121 | + - f_messages: |
| 122 | + - =level(info,notice,warn) and not facility(auth,authpriv,cron,daemon,mail,news) |
| 123 | + |
| 124 | + - f_auth: |
| 125 | + - =facility(auth, authpriv) and not filter(f_debug) |
| 126 | + - f_cron: |
| 127 | + - =facility(cron) and not filter(f_debug) |
| 128 | + - f_daemon: |
| 129 | + - =facility(daemon) and not filter(f_debug) |
| 130 | + - f_kern: |
| 131 | + - =facility(kern) and not filter(f_debug) |
| 132 | + - f_lpr: |
| 133 | + - =facility(lpr) and not filter(f_debug) |
| 134 | + - f_local: |
| 135 | + - =facility(local0, local1, local3, local4, local5, local6, local7) and not filter(f_debug) |
| 136 | + - f_mail: |
| 137 | + - =facility(mail) and not filter(f_debug) |
| 138 | + - f_news: |
| 139 | + - =facility(news) and not filter(f_debug) |
| 140 | + - f_syslog3: |
| 141 | + - =not facility(auth, authpriv, mail) and not filter(f_debug) |
| 142 | + - f_user: |
| 143 | + - =facility(user) and not filter(f_debug) |
| 144 | + - f_uucp: |
| 145 | + - =facility(uucp) and not filter(f_debug) |
| 146 | + - f_cnews: |
| 147 | + - =level(notice, err, crit) and facility(news) |
| 148 | + - f_cother: |
| 149 | + - =level(debug, info, notice, warn) or facility(daemon, mail) |
| 150 | + - f_ppp: |
| 151 | + - =facility(local2) and not filter(f_debug) |
| 152 | + |
| 153 | + log: |
| 154 | + - |
| 155 | + - source: =s_src |
| 156 | + - filter: =f_auth |
| 157 | + - destination: =d_auth |
| 158 | + - |
| 159 | + - source: =s_src |
| 160 | + - filter: =f_cron |
| 161 | + - destination: =d_cron |
| 162 | + - |
| 163 | + - source: =s_src |
| 164 | + - filter: =f_daemon |
| 165 | + - destination: =d_daemon |
| 166 | + - |
| 167 | + - source: =s_src |
| 168 | + - filter: =f_kern |
| 169 | + - destination: =d_kern |
| 170 | + - |
| 171 | + - source: =s_src |
| 172 | + - filter: =f_lpr |
| 173 | + - destination: =d_lpr |
| 174 | + - |
| 175 | + - source: =s_src |
| 176 | + - filter: =f_syslog3 |
| 177 | + - destination: =d_syslog |
| 178 | + - |
| 179 | + - source: =s_src |
| 180 | + - filter: =f_user |
| 181 | + - destination: =d_user |
| 182 | + - |
| 183 | + - source: =s_src |
| 184 | + - filter: =f_uucp |
| 185 | + - destination: =d_uucp |
| 186 | + - |
| 187 | + - source: =s_src |
| 188 | + - filter: =f_mail |
| 189 | + - destination: =d_mail |
| 190 | + - |
| 191 | + - source: =s_src |
| 192 | + - filter: =f_news |
| 193 | + - filter: =f_crit |
| 194 | + - destination: =d_newscrit |
| 195 | + - |
| 196 | + - source: =s_src |
| 197 | + - filter: =f_news |
| 198 | + - filter: =f_err |
| 199 | + - destination: =d_newserr |
| 200 | + - |
| 201 | + - source: =s_src |
| 202 | + - filter: =f_news |
| 203 | + - filter: =f_notice |
| 204 | + - destination: =d_newsnotice |
| 205 | + - |
| 206 | + - source: =s_src |
| 207 | + - filter: =f_debug |
| 208 | + - destination: =d_debug |
| 209 | + - |
| 210 | + - source: =s_src |
| 211 | + - filter: =f_error |
| 212 | + - destination: =d_error |
| 213 | + - |
| 214 | + - source: =s_src |
| 215 | + - filter: =f_messages |
| 216 | + - destination: =d_messages |
| 217 | + - |
| 218 | + - source: =s_src |
| 219 | + - filter: =f_console |
| 220 | + - destination: =d_console_all |
| 221 | + - destination: =d_xconsole |
| 222 | + - |
| 223 | + - source: =s_src |
| 224 | + - filter: =f_crit |
| 225 | + - destination: =d_console |
0 commit comments