X-Git-Url: https://git.tld-linux.org/?p=packages%2Fsyslog-ng.git;a=blobdiff_plain;f=syslog-ng-simple.conf;h=d6023c77e77e10d92c1d7373a05a71991a1d488e;hp=2fbce3a3464977b8ed46c772f1d4d49bf0d0244d;hb=8cb62dd54aeb56e9f6e118550062bf53c7996ae1;hpb=f955e6dc3173909a37d679f66ef0139ac4d1db2f diff --git a/syslog-ng-simple.conf b/syslog-ng-simple.conf index 2fbce3a..d6023c7 100644 --- a/syslog-ng-simple.conf +++ b/syslog-ng-simple.conf @@ -1,38 +1,55 @@ -@version: 3.6 +@version: 3.18 # -# Syslog-ng configuration for PLD Linux +# Syslog-ng configuration for TLD Linux # -# Copyright (c) 1999 anonymous -# Copyright (c) 1999 Balazs Scheidler -# $Id$ +# See syslog-ng(8) and syslog-ng.conf(5) for more information. # -# Syslog-ng configuration file options { - long_hostnames(off); flush_lines(0); - - # The default action of syslog-ng 1.6.0 is to log a STATS line - # to the file every 10 minutes. That's pretty ugly after a while. - # Change it to every 12 hours so you get a nice daily update of - # how many messages syslog-ng missed (0). + owner(root); + group(logs); + perm(0640); + create_dirs(yes); + dir_owner(root); + dir_group(logs); + dir_perm(0750); stats_freq(43200); + time_reopen(10); + time_reap(360); + mark_freq(600); + threaded(yes); }; -source s_kernel { file ("/proc/kmsg" program_override("kernel")); }; -source s_src { unix-stream("/dev/log"); internal(); }; -# if using systemd, comment out the line above, and uncomment line below -#source s_src { unix-dgram("/run/systemd/journal/syslog"); internal(); }; +source s_sys { + file ("/proc/kmsg" program_override("kernel")); + + unix-stream("/dev/log" max-connections(1000) log_iw_size(100000)); + internal(); +}; destination d_mail { file("/var/log/maillog"); }; destination d_messages { file("/var/log/messages"); }; -destination d_kernel { file("/var/log/kernel"); }; +destination d_kern { file("/var/log/kernel"); }; destination d_console_all { file("/dev/tty12"); }; +# if using systemd, an IP address instead of name may be required here +#destination d_loghost { udp("loghost" port(514)); }; + filter f_kern { facility(kern); }; filter f_mail { facility(mail); }; -log { source(s_kernel); destination(d_kernel); }; -log { source(s_src); destination(d_console_all); }; -log { source(s_src); filter(f_mail); destination(d_mail); }; -log { source(s_src); destination(d_messages); flags(fallback); }; +log { source(s_sys); filter(f_kern); destination(d_kern); }; +log { source(s_sys); filter(f_mail); destination(d_mail); }; + +# This is a catchall statement, and should catch all messages which were not +# accepted any of the previous statements. +# If using d_console_all or network logging, remove flags(fallback); +log { source(s_sys); destination(d_messages); flags(fallback); }; +#log { source(s_sys); destination(d_messages); }; + +# Log all messages to tty12 +#log { source(s_sys); destination(d_console_all); }; + +# Network syslogging +#log { source(s_sys); destination(d_loghost); };