source s_loghost{ syslog( ip("127.0.0.1") transport("udp") max-connections(8) );};filter f_all{ level(debug..emerg) and not (program("devd") and level(debug..info));};destination d_host_daily{ file("/media/log/$HOST.$WEEKDAY.log" owner(root) group(wheel) perm(0600) dir_perm(0750) create_dirs(yes) template("$FULLDATE: $HOST ($FACILITY/$LEVEL) [$PROGRAM] $MSGONLY\n") template_escape(no) overwrite_if_older(514800) # overwrite if older than 6 days minus 1 hour );};log{ source(s_loghost); filter(f_all); destination(d_host_daily);};
@version:3.34@include "scl.conf"## options#options { keep_hostname(yes); use_fqdn(yes); chain_hostnames(off); flush_lines(0); threaded(yes); create_dirs(yes);};source s_all { internal(); unix-dgram("/var/run/log" flags(syslog-protocol)); unix-dgram("/var/run/logpriv" perm(0600) flags(syslog-protocol)); unix-dgram("/var/dhcpd/var/run/log" dir_perm(0755) flags(syslog-protocol)); unix-dgram("/var/unbound/var/run/log" dir_perm(0755) flags(syslog-protocol));};@include "/usr/local/etc/syslog-ng.conf.d/*.conf"
root@zero:/media/log # netstat | grep syslogudp4 0 0 localhost.syslog *.*fffff8000e4c5a00 stream 0 0 fffff800c34421e0 0 0 0 /var/db/syslog-ng.ctl
ip("127.0.0.1")
syslog( transport("udp") max-connections(8) ); ?