[syslog-ng] RE : How do I force syslog-ng to create an empty log file ??

Eggart, Gerhard geggart at emea.att.com
Wed Sep 7 14:48:17 CEST 2005


Hi,


We are currently using syslog-ng (syslog-ng 1.6.0rc4) to log for local log messages on a device.
We have the following in the config file to store local auth messages.

destination local_auth  { file("/var/log/local/auth.$YEAR$MONTH$DAY"); };

We have the following in the config file to store local error messages.

destination local_err   { file("/var/log/local/errors.$YEAR$MONTH$DAY"); };

The problem I have is that sometimes for a day there are no error or auth messages and because of this the log file is not generated, a log file is only created if there is log data to put into it.

I require syslog-ng to force the creation of a log file for the day even if it is empty.

I have also just tried the stats(600) option in the configuration and stopped and started the dameon and this does not write any information to a log file - therefore no errors log file is created for the day.


Does anyone know if this can be done on syslog-ng ???

Thanks 


> Gerhard Eggart
> 
> 
> 


More information about the syslog-ng mailing list