X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=syslog-ng.conf;h=a6069d4b6f258b9309e5eeffc810cff802764000;hb=f3c9c254b0eed71abbc701befcaa9074d155dc61;hp=a073b74b791c7f66ad5384fda12db87000369f5e;hpb=d44347bcdc512d7cf5d83baf2b730aa2d873ba01;p=packages%2Fsyslog-ng.git diff --git a/syslog-ng.conf b/syslog-ng.conf index a073b74..a6069d4 100644 --- a/syslog-ng.conf +++ b/syslog-ng.conf @@ -1,4 +1,4 @@ -@version: 3.16 +@version: 3.18 @include "scl.conf" # # Syslog-ng configuration for TLD Linux @@ -28,7 +28,7 @@ source s_sys { }; # uncomment the line below and change ip/port if you want to run syslog server -#source s_net udp(ip(192.168.1.100),port(514)); +#source s_net { udp(ip(192.168.1.100),port(514)); }; # uncomment the line bellow if you want to send logs to syslog server #destination d_loghost { udp("loghost" port(514)); }; @@ -55,6 +55,7 @@ destination d_xconsole { pipe("/dev/xconsole"); }; destination d_newscrit { file("/var/log/news/news.crit" owner(news) group(news)); }; destination d_newserr { file("/var/log/news/news.err" owner(news) group(news)); }; destination d_newsnotice { file("/var/log/news/news.notice" owner(news) group(news)); }; +destination d_dhcp { file("/var/log/dhcp"); }; # uncomment the line below if you want to run syslog server #destination d_from_net { file("/var/log/$HOST.log" owner(root) group(root) perm(0644) dir_perm(0700) create_dirs(yes)); }; @@ -96,6 +97,7 @@ filter f_freshclam { program(freshclam); }; filter f_ppp { program(pppd) or program(chat); }; filter f_postgres { program(postgres); }; filter f_shorewall { facility(kern) and match("Shorewall:" value("MESSAGE")); }; +filter f_dhcp { program("dhcpd") or program("dnsmasq-dhcp"); }; # uncomment the line below if you want to run syslog server #log { source(s_net); destination(d_from_net); flags(final); }; @@ -106,6 +108,9 @@ filter f_shorewall { facility(kern) and match("Shorewall:" value("MESSAGE")); }; # log shorewall to separate log file by default log { source(s_sys); filter(f_shorewall); destination(d_shorewall); flags(final); }; +# log dhcp daemons to separate log file by default +log { source(s_sys); filter(f_dhcp); destination(d_dhcp); flags(final); }; + log { source(s_sys); filter(f_authpriv); destination(d_authlog); }; log { source(s_sys); filter(f_cron); destination(d_cron); }; log { source(s_sys); filter(f_daemon); destination(d_daemon); };