Strange behavior of logRotate?
Posted
by superdario
on Server Fault
See other posts from Server Fault
or by superdario
Published on 2010-03-18T09:44:21Z
Indexed on
2010/03/18
9:51 UTC
Read the original article
Hit count: 553
logrotate
Hello,
I have the following configuration of logrotate:
/var/log/test/app.log {
missingok
notifempty
compress
copytruncate
daily
rotate 4
}
The application generating the log is a Java application. 2 I set up this configuration yesterday before midnight. Today in the morning I noticed that logRotate made a file called "app.log.1", which only had log entries between 8:21 AM and 10:05 AM. app.log was logging since 10:05 AM. All the logs before 8:21 AM were missing! Furthermore, "app.log.1" wasn't even compressed.
Do you know what could've caused this?
© Server Fault or respective owner