[rsyslog] central logserver log rotation

Rainer Gerhards rgerhards at hq.adiscon.com
Thu Mar 27 10:13:25 CET 2008


Hi Johnn,

the typical solution seems to be to include a date-specific part in the
filename:

/var/log/rsyslog/%$YEAR%/%$MONTH%/%$DAY%/%HOSTNAME%

And clean up the directories every now and then...

Rainer

> -----Original Message-----
> From: rsyslog-bounces at lists.adiscon.com [mailto:rsyslog-
> bounces at lists.adiscon.com] On Behalf Of Johnny Tan
> Sent: Thursday, March 27, 2008 2:29 AM
> To: rsyslog-users
> Subject: [rsyslog] central logserver log rotation
> 
> Thanks to Rainer, I've got my shiny new central log server
> up & running. I'd like to rotate the logs on there.
> 
> If I've got a separate directory for each host, though
> (i.e., /var/log/rsyslog/%HOSTNAME%), how can I do this?
> 
> Does something like this work with logrotate:
> 
> /var/log/rsyslog/*/* {
>      weekly
>      notifempty
>      missingok
> }
> 
> 
> What are people doing for logrotation on their CENTRAL
> logging server?
> 
> johnn
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog


More information about the rsyslog mailing list