[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

logrotate custom extension



Hiya, this is my first post to the list . . . I hope I'm posting to the
right one as there seemed to be so many to choose from on the site.

Anyway, I'm using RedHat 8 and am trying to sort out our logrotate script as
our
daily logs are currently running at around 500MB/day.

I want to move the logs, compress them and give them an extension for the
previous days date, ie. access_log.290703.gz

Having read the Man page I see that I can use extension in the
logrotate.conf script but how can I tell it to attach the date to this??
will the line

extension `date -d '1 day ago' +%d%m%Y`

in the logrotate.conf achieve what I'm after??

Adam Reynolds




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]