diff options
author | Mario Preksavec <mario@slackware.hr> | 2013-12-12 00:08:58 +0700 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2013-12-14 10:53:03 -0600 |
commit | 7ec156eccdd442461d08b4f701532a04031f4f01 (patch) | |
tree | ccc18fae24234be82d8d0dcfc96ea08b74a68c9f /system/syslog-ng/syslog-ng.conf | |
parent | 05d5d1ca13b1c89f103d963e6cb3d8ae40f23bf3 (diff) | |
download | slackbuilds-7ec156eccdd442461d08b4f701532a04031f4f01.tar.gz |
system/syslog-ng: Updated for version 3.5.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/syslog-ng/syslog-ng.conf')
-rw-r--r-- | system/syslog-ng/syslog-ng.conf | 59 |
1 files changed, 30 insertions, 29 deletions
diff --git a/system/syslog-ng/syslog-ng.conf b/system/syslog-ng/syslog-ng.conf index e49dfd062c..ac46d7a226 100644 --- a/system/syslog-ng/syslog-ng.conf +++ b/system/syslog-ng/syslog-ng.conf @@ -1,31 +1,32 @@ -@version: 3.3 +@version: 3.5 -# Default syslog-ng configuration for Slackware +# Drop-in replacement for a stock Slackware syslog.conf # For info about the format of this file, see "man syslog-ng.conf" -# Converted from sysklogd (syslog.conf) by mario@slackverse.org +# Written by Mario Preksavec <mario@slackware.hr> options { - flush_lines (0); - time_reopen (10); - log_fifo_size (10240); - log_msg_size (8192); - chain_hostnames (no); - use_dns (no); - use_fqdn (no); - create_dirs (no); - keep_hostname (yes); + flush_lines(0); + time_reopen(60); + log_fifo_size(10240); + log_msg_size(8192); + chain_hostnames(no); + use_dns(no); + use_fqdn(no); + create_dirs(yes); + keep_hostname(yes); owner("root"); group("root"); perm(0640); - stats_freq (0); - check_hostname (yes); - dns_cache (yes); + dir_perm(0755); + stats_freq(0); + check_hostname(yes); + dns_cache(no); }; -source system { +source s_system { + internal(); unix-dgram("/dev/log"); file("/proc/kmsg" program_override("kernel")); - internal(); }; filter f_messages { level(info,notice) and not facility(authpriv,cron,mail,news); }; @@ -48,34 +49,34 @@ destination d_spooler { file("/var/log/spooler"); }; # Log anything 'info' or higher, but lower than 'warn'. # Exclude authpriv, cron, mail, and news. These are logged elsewhere. -log { source(system); filter(f_messages); destination(d_messages); }; +log { source(s_system); filter(f_messages); destination(d_messages); }; # Log anything 'warn' or higher. # Exclude authpriv, cron, mail, and news. These are logged elsewhere. -log { source(system); filter(f_syslog); destination(d_syslog); }; +log { source(s_system); filter(f_syslog); destination(d_syslog); }; # Debugging information is logged here. -log { source(system); filter(f_debug); destination(d_debug); }; +log { source(s_system); filter(f_debug); destination(d_debug); }; # Private authentication message logging: -log { source(system); filter(f_authpriv); destination(d_secure); }; +log { source(s_system); filter(f_authpriv); destination(d_secure); }; # Cron related logs: -log { source(system); filter(f_cron); destination(d_cron); }; +log { source(s_system); filter(f_cron); destination(d_cron); }; # Mail related logs: -log { source(system); filter(f_mail); destination(d_maillog); }; +log { source(s_system); filter(f_mail); destination(d_maillog); }; # Emergency level messages go to all users: -log { source(system); filter(f_emerg); destination(d_usertty); }; +log { source(s_system); filter(f_emerg); destination(d_usertty); }; # This log is for news and uucp errors: -log { source(system); filter(f_uucp); destination(d_spooler); }; +log { source(s_system); filter(f_uucp); destination(d_spooler); }; # Uncomment this to see kernel messages on the console. #filter f_kern { facility(kern); }; #destination d_console { file("/dev/console"); }; -#log { source(system); filter(f_kern); destination(d_console); }; +#log { source(s_system); filter(f_kern); destination(d_console); }; # Uncomment these if you'd like INN to keep logs on everything. # You won't need this if you don't run INN (the InterNetNews daemon). @@ -85,6 +86,6 @@ log { source(system); filter(f_uucp); destination(d_spooler); }; #destination d_news_crit { file("/var/log/news/news.crit"); }; #destination d_news_err { file("/var/log/news/news.err"); }; #destination d_news_notice { file("/var/log/news/news.notice"); }; -#log { source(system); filter(f_news_crit); destination(d_news_crit); }; -#log { source(system); filter(f_news_err); destination(d_news_err); }; -#log { source(system); filter(f_news_notice); destination(f_news_notice); }; +#log { source(s_system); filter(f_news_crit); destination(d_news_crit); }; +#log { source(s_system); filter(f_news_err); destination(d_news_err); }; +#log { source(s_system); filter(f_news_notice); destination(f_news_notice); }; |