[syslog-ng] Closing destination file when date changes.

Balazs Scheidler bazsi77 at gmail.com
Sat Mar 23 05:51:28 CET 2013


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
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20130323/baa0c734/attachment.htm 


More information about the syslog-ng mailing list