Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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.