Logrotate appending file name with a ".1" -


for reason our tomcatlogs being appended .1 when logrotate runs. e.g: file "tcl-2013-08-16.0.log" becomes "tcl-2013-08-16.0.1.log". struggling find setting adding ".1" before ".log" part of file name. below copy of settings file /etc/logrotate.d/:

    extension .log     rotate 52     daily     nocreate     nodateext     missingok     notifempty     compress     delaycompress 

below config in /etc/logrotate.conf:

    weekly     rotate 52       create       dateext       compress       delaycompress       include /etc/logrotate.d 

what missing here?

thanks, nath

if @ copy of settings file /etc/logrotate.d/", find there option extension .log.

this option means trying append .log extension rotated files. if remove option , run logrotate again, find default extension *.log.1 , *.log.2, , on rotated files.

in nutshell, remove option extension .log. because rotated files take .log extension.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -