Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the following configuration of logrotate:

/var/log/test/app.log {
        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?

share|improve this question
Please edit your question to add contents of the file /etc/logrotate.conf – kubanczyk Mar 18 '10 at 11:40
up vote 1 down vote accepted

is your java application using log4j? perhaps the app has a rollingfileappender configured, so the logrotation came from the app itself not from your logrotate configuration.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.