[syslog-ng] syslog-ng and logrotate

Jakub Jankowski shasta at toxcorp.com
Fri May 10 15:20:36 CEST 2013


On 2013-05-10, Gergely Nagy wrote:

> Rakesh Rajasekharan <rakesh.rajasekharan at gmail.com> writes:
>
>> yes something similar .. but instead of the day, month can we do it based
>> on the size. say once it crosses 1 GB , archive it and have a new log file
>> created. Can we do this from syslog-ng ?
>
> No, that is not possible yet. There are plans to add support for it,
> there was even a patch a year or so ago, but it needs to be cleaned up
> and updated before proposing it for merging into 3.5. And as such, if
> and when this feature appears, it won't be in the 3.3 or 3.4 branches.

And until this is implemented, my suggestion is to use logrotate as you'd 
use with classic BSD syslogd. Don't forget to send SIGHUP to syslog-ng in 
postrotate hooks.


HTH,

-- 
Jakub Jankowski|shasta at toxcorp.com|http://toxcorp.com/
GPG: FCBF F03D 9ADB B768 8B92 BB52 0341 9037 A875 942D


More information about the syslog-ng mailing list