How to change log rotate Extension..???

Posted by Jayakrishnan T on Server Fault See other posts from Server Fault or by Jayakrishnan T
Published on 2010-12-27T14:41:47Z Indexed on 2010/12/27 14:55 UTC
Read the original article Hit count: 170

Hi all,

currently my logrotate configuration adds a single number after the rotated log file:

mylogfile.log is rotated to mylogfile.log.1

I would like to change the extension to mylogfile.log.Current date

does anyone know a way to do this?

my log rotate code is :-

/usr/local/jboss/jboss-3.2.7-ND1/server/default/log/consolelog.log { copytruncate rotate 1 missingok notifempty }

Currently am renaming the rotated file with script.is there any option to change the extension of log rotate default configuration. Please help me

© Server Fault or respective owner

Related posts about linux

Related posts about redhat