How to change log rotate Extension..???
- by Jayakrishnan T
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