Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

On my machine there is some process which is writing a log in C:\Application.log. Now I want to rotate the logs file without stopping that application. On the same machine I have apache 2.2. As I know we can use apache's rotatelogs.exe, but it is not rotating the log file

I am using following syntax to rotate the log file:

C:\Apache\bin\rotatelogs.exe  C:\Application.log 20M

Need expert opinion to achieve this.

share|improve this question
up vote 2 down vote accepted

rotatelogs is a simple program for use in conjunction with Apache's piped logfile feature

This means that to use rotate logs the application you have must have the ability log to a pipe, be configured to send the logs to the rotatelogs stdin.

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.