1
0
mirror of https://github.com/phusion/baseimage-docker.git synced 2026-03-26 04:18:46 +00:00

Update syslog configuration (took the diff between stock 16.04 and phusion 16.04 to figure out what to apply to the stock 18.04 syslog conf) as it complains about old config format

This commit is contained in:
Arnold Hendriks
2018-04-09 23:06:21 +02:00
parent 43791943e5
commit f936902c23

View File

@@ -1,14 +1,13 @@
@version: 3.5 @version: 3.13
@include "scl.conf" @include "scl.conf"
@include "`scl-root`/system/tty10.conf"
# Syslog-ng configuration file, compatible with default Debian syslogd # Syslog-ng configuration file, compatible with default Debian syslogd
# installation. # installation.
# First, set some global options. # First, set some global options.
options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no); options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no);
owner("root"); group("adm"); perm(0640); stats_freq(0); owner("root"); group("adm"); perm(0640); stats_freq(0);
bad_hostname("^gconfd$"); bad_hostname("^gconfd$");
}; };
######################## ########################
@@ -54,7 +53,7 @@ destination d_newscrit { file("/var/log/news/news.crit"); };
destination d_newserr { file("/var/log/news/news.err"); }; destination d_newserr { file("/var/log/news/news.err"); };
destination d_newsnotice { file("/var/log/news/news.notice"); }; destination d_newsnotice { file("/var/log/news/news.notice"); };
# Some `catch-all' logfiles. # Some 'catch-all' logfiles.
# #
destination d_debug { file("/var/log/debug"); }; destination d_debug { file("/var/log/debug"); };
destination d_error { file("/var/log/error"); }; destination d_error { file("/var/log/error"); };
@@ -80,7 +79,7 @@ destination d_stdout { ##SYSLOG_OUTPUT_MODE_DEV_STDOUT##("/dev/stdout"); };
######################## ########################
# Filters # Filters
######################## ########################
# Here's come the filter options. With this rules, we can set which # Here's come the filter options. With this rules, we can set which
# message go where. # message go where.
filter f_dbg { level(debug); }; filter f_dbg { level(debug); };
@@ -92,7 +91,7 @@ filter f_crit { level(crit .. emerg); };
filter f_debug { level(debug) and not facility(auth, authpriv, news, mail); }; filter f_debug { level(debug) and not facility(auth, authpriv, news, mail); };
filter f_error { level(err .. emerg) ; }; filter f_error { level(err .. emerg) ; };
filter f_messages { level(info,notice,warn) and filter f_messages { level(info,notice,warn) and
not facility(auth,authpriv,cron,daemon,mail,news); }; not facility(auth,authpriv,cron,daemon,mail,news); };
filter f_auth { facility(auth, authpriv) and not filter(f_debug); }; filter f_auth { facility(auth, authpriv) and not filter(f_debug); };
@@ -134,6 +133,8 @@ log { source(s_src); filter(f_mail); destination(d_mail); };
log { source(s_src); filter(f_news); filter(f_crit); destination(d_newscrit); }; log { source(s_src); filter(f_news); filter(f_crit); destination(d_newscrit); };
log { source(s_src); filter(f_news); filter(f_err); destination(d_newserr); }; log { source(s_src); filter(f_news); filter(f_err); destination(d_newserr); };
log { source(s_src); filter(f_news); filter(f_notice); destination(d_newsnotice); }; log { source(s_src); filter(f_news); filter(f_notice); destination(d_newsnotice); };
#log { source(s_src); filter(f_cnews); destination(d_console_all); };
#log { source(s_src); filter(f_cother); destination(d_console_all); };
#log { source(s_src); filter(f_ppp); destination(d_ppp); }; #log { source(s_src); filter(f_ppp); destination(d_ppp); };