@version: 3.11 | |
options { | |
keep_hostname(yes); | |
create_dirs(yes); | |
ts_format(iso); | |
time_reopen (10); | |
chain_hostnames (no); | |
}; | |
source s_net { | |
tcp( | |
ip("0.0.0.0") | |
); | |
udp( | |
ip("0.0.0.0") | |
); | |
syslog( | |
ip("0.0.0.0") | |
); | |
unix-stream("/var/run/lock/syslog-ng.sock"); | |
}; | |
destination logfiles { | |
file("/var/log/syslog-ng/$PROGRAM.log"); | |
}; | |
log { | |
source(s_net); | |
destination(logfiles); | |
}; |