|
|
@@ -1,9 +1,12 @@ |
|
|
|
# -*- coding: utf-8 -*- |
|
|
|
# vim: ft=yaml |
|
|
|
--- |
|
|
|
syslog_ng: |
|
|
|
options: |
|
|
|
- chain_hostnames: no |
|
|
|
- chain_hostnames: false |
|
|
|
- flush_lines: 0 |
|
|
|
- use_dns: no |
|
|
|
- use_fqdn: no |
|
|
|
- use_dns: false |
|
|
|
- use_fqdn: false |
|
|
|
- owner: root |
|
|
|
- group: adm |
|
|
|
- perm: =0640 |
|
|
@@ -12,143 +15,144 @@ syslog_ng: |
|
|
|
|
|
|
|
source: |
|
|
|
- s_src: |
|
|
|
- system: null |
|
|
|
- internal: null |
|
|
|
- system: null |
|
|
|
- internal: null |
|
|
|
|
|
|
|
destination: |
|
|
|
# First some standard logfile |
|
|
|
- d_auth: |
|
|
|
- file: |
|
|
|
- /var/log/auth.log |
|
|
|
- file: |
|
|
|
- /var/log/auth.log |
|
|
|
- d_cron: |
|
|
|
- file: |
|
|
|
- /var/log/cron.log |
|
|
|
- file: |
|
|
|
- /var/log/cron.log |
|
|
|
- d_daemon: |
|
|
|
- file: |
|
|
|
- /var/log/daemon.log |
|
|
|
- file: |
|
|
|
- /var/log/daemon.log |
|
|
|
- d_kern: |
|
|
|
- file: |
|
|
|
- /var/log/kern.log |
|
|
|
- file: |
|
|
|
- /var/log/kern.log |
|
|
|
- d_lpr: |
|
|
|
- file: |
|
|
|
- /var/log/lpr.log |
|
|
|
- file: |
|
|
|
- /var/log/lpr.log |
|
|
|
- d_mail: |
|
|
|
- file: |
|
|
|
- /var/log/mail.log |
|
|
|
- file: |
|
|
|
- /var/log/mail.log |
|
|
|
- d_syslog: |
|
|
|
- file: |
|
|
|
- /var/log/syslog |
|
|
|
- file: |
|
|
|
- /var/log/syslog |
|
|
|
- d_user: |
|
|
|
- file: |
|
|
|
- /var/log/user.log |
|
|
|
- file: |
|
|
|
- /var/log/user.log |
|
|
|
- d_uucp: |
|
|
|
- file: |
|
|
|
- /var/log/uucp.log |
|
|
|
- file: |
|
|
|
- /var/log/uucp.log |
|
|
|
|
|
|
|
# This files are the log come from the mail subsystem. |
|
|
|
- d_mailinfo: |
|
|
|
- file: |
|
|
|
- /var/log/mail.info |
|
|
|
- file: |
|
|
|
- /var/log/mail.info |
|
|
|
- d_mailwarn: |
|
|
|
- file: |
|
|
|
- /var/log/mail.warn |
|
|
|
- file: |
|
|
|
- /var/log/mail.warn |
|
|
|
- d_mailerr: |
|
|
|
- file: |
|
|
|
- /var/log/mail.err |
|
|
|
- file: |
|
|
|
- /var/log/mail.err |
|
|
|
|
|
|
|
# Logging for INN news system |
|
|
|
- d_newscrit: |
|
|
|
- file: |
|
|
|
- /var/log/news/news.crit |
|
|
|
- file: |
|
|
|
- /var/log/news/news.crit |
|
|
|
- d_newserr: |
|
|
|
- file: |
|
|
|
- /var/log/news/news.err |
|
|
|
- file: |
|
|
|
- /var/log/news/news.err |
|
|
|
- d_newsnotice: |
|
|
|
- file: |
|
|
|
- /var/log/news/news.notice |
|
|
|
- file: |
|
|
|
- /var/log/news/news.notice |
|
|
|
|
|
|
|
# Some 'catch-all' logfiles |
|
|
|
- d_debug: |
|
|
|
- file: |
|
|
|
- /var/log/debug |
|
|
|
- file: |
|
|
|
- /var/log/debug |
|
|
|
- d_error: |
|
|
|
- file: |
|
|
|
- /var/log/error |
|
|
|
- file: |
|
|
|
- /var/log/error |
|
|
|
- d_messages: |
|
|
|
- file: |
|
|
|
- /var/log/messages |
|
|
|
- file: |
|
|
|
- /var/log/messages |
|
|
|
|
|
|
|
# The root's console. |
|
|
|
- d_console: |
|
|
|
- usertty: |
|
|
|
- root |
|
|
|
- usertty: |
|
|
|
- root |
|
|
|
|
|
|
|
# Virtual console. |
|
|
|
- d_console_all: |
|
|
|
- file: |
|
|
|
- '`tty10`' |
|
|
|
- file: |
|
|
|
- '`tty10`' |
|
|
|
|
|
|
|
# The named pipe /dev/xconsole is for the nsole' utility. |
|
|
|
- d_xconsole: |
|
|
|
- pipe: |
|
|
|
- /dev/xconsole |
|
|
|
- pipe: |
|
|
|
- /dev/xconsole |
|
|
|
|
|
|
|
# Debian only |
|
|
|
- d_ppp: |
|
|
|
- file: |
|
|
|
- /var/log/ppp.log |
|
|
|
- file: |
|
|
|
- /var/log/ppp.log |
|
|
|
|
|
|
|
filter: |
|
|
|
- f_dbg: |
|
|
|
- level: =debug |
|
|
|
- level: =debug |
|
|
|
- f_info: |
|
|
|
- level: =info |
|
|
|
- level: =info |
|
|
|
- f_notice: |
|
|
|
- level: =notice |
|
|
|
- level: =notice |
|
|
|
- f_warn: |
|
|
|
- level: =warn |
|
|
|
- level: =warn |
|
|
|
- f_err: |
|
|
|
- level: =err |
|
|
|
- level: =err |
|
|
|
- f_crit: |
|
|
|
- level: =crit .. emerg |
|
|
|
- level: =crit .. emerg |
|
|
|
- f_error: |
|
|
|
- level: =err .. emerg |
|
|
|
- level: =err .. emerg |
|
|
|
- f_console: |
|
|
|
- level: =warn .. emerg |
|
|
|
- level: =warn .. emerg |
|
|
|
|
|
|
|
- f_debug: |
|
|
|
- =level(debug) and not facility(auth, authpriv, news, mail) |
|
|
|
- =level(debug) and not facility(auth, authpriv, news, mail) |
|
|
|
- f_messages: |
|
|
|
- =level(info,notice,warn) and not facility(auth,authpriv,cron,daemon,mail,news) |
|
|
|
- =level(info,notice,warn) and not facility(auth,authpriv,cron,daemon,mail,news) |
|
|
|
|
|
|
|
- f_auth: |
|
|
|
- =facility(auth, authpriv) and not filter(f_debug) |
|
|
|
- =facility(auth, authpriv) and not filter(f_debug) |
|
|
|
- f_cron: |
|
|
|
- =facility(cron) and not filter(f_debug) |
|
|
|
- =facility(cron) and not filter(f_debug) |
|
|
|
- f_daemon: |
|
|
|
- =facility(daemon) and not filter(f_debug) |
|
|
|
- =facility(daemon) and not filter(f_debug) |
|
|
|
- f_kern: |
|
|
|
- =facility(kern) and not filter(f_debug) |
|
|
|
- =facility(kern) and not filter(f_debug) |
|
|
|
- f_lpr: |
|
|
|
- =facility(lpr) and not filter(f_debug) |
|
|
|
- =facility(lpr) and not filter(f_debug) |
|
|
|
- f_local: |
|
|
|
- =facility(local0, local1, local3, local4, local5, local6, local7) and not filter(f_debug) |
|
|
|
# yamllint disable-line rule:line-length |
|
|
|
- =facility(local0, local1, local3, local4, local5, local6, local7) and not filter(f_debug) |
|
|
|
- f_mail: |
|
|
|
- =facility(mail) and not filter(f_debug) |
|
|
|
- =facility(mail) and not filter(f_debug) |
|
|
|
- f_news: |
|
|
|
- =facility(news) and not filter(f_debug) |
|
|
|
- =facility(news) and not filter(f_debug) |
|
|
|
- f_syslog3: |
|
|
|
- =not facility(auth, authpriv, mail) and not filter(f_debug) |
|
|
|
- =not facility(auth, authpriv, mail) and not filter(f_debug) |
|
|
|
- f_user: |
|
|
|
- =facility(user) and not filter(f_debug) |
|
|
|
- =facility(user) and not filter(f_debug) |
|
|
|
- f_uucp: |
|
|
|
- =facility(uucp) and not filter(f_debug) |
|
|
|
- =facility(uucp) and not filter(f_debug) |
|
|
|
- f_cnews: |
|
|
|
- =level(notice, err, crit) and facility(news) |
|
|
|
- =level(notice, err, crit) and facility(news) |
|
|
|
- f_cother: |
|
|
|
- =level(debug, info, notice, warn) or facility(daemon, mail) |
|
|
|
- =level(debug, info, notice, warn) or facility(daemon, mail) |
|
|
|
- f_ppp: |
|
|
|
- =facility(local2) and not filter(f_debug) |
|
|
|
- =facility(local2) and not filter(f_debug) |
|
|
|
|
|
|
|
log: |
|
|
|
- |