23 Mar
2013
23 Mar
'13
4:51 a.m.
hi, right now, you can do that only via sending a sighup to syslog-ng at that time. syslog-ng will close that file after time-reap() seconds once no messages are received there. time-reap() defaults to 60 seconds iirc. hope this helps. ----- Original message -----
Hello. I'm using a very simple configuration on Ubuntu 12.04.2 LTS @version: 3.3 @include "scl.conf" source from-network { udp(ip("0.0.0.0") port(514)); }; destination local-file { file("/var/log/temporary-encrypted/$YEAR-$MONTH-$DAY.log"); }; log { source(from-network); destination(local-file);};
Log on a destination file using date as filename. I need to close this file when date changes at 00:00. How? Thanks. Andrea