I am looking into log rotation for our web server (not apache) on Windows. I have heard of cronolog, CHOMP, and others. Does Windows have a built-in rotation .exe? What have you found to be a good logrotation application?

closed as off-topic by HopelessN00b, womble Oct 26 '17 at 22:36

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.


Windows automatically ages old log entries and has for years. Set the max log size or minimum ages and make sure you have the disk space to support your settings. Settings can be controlled server by server or centrally through group policy. More here: http://technet.microsoft.com/en-us/library/bb726966.aspx \

  • Does this apply to Couch Database log files, as well? I am new to this sort of thing. They are logged in plain text. – skitterm Aug 16 '12 at 22:07
  • 9
    This isn't the right answer. The author is asking about text file logging and this answer is about the NT Event log--two different beasts. – Gringo Suave Nov 15 '12 at 8:08

You might try LogRotateWin. It implements logrotate on Windows. You configure it with text config files in the same syntax as the Unix logrotate and run it from a scheduled task.


As much as it's pure evil to risk giving @EvanAnderson more rep by linking to one of his answers, it applies in this case.

It seems like most people don't know about this feature, but Windows will rotate the log files automatically if so-configured. Look for "AutoBackupLogFiles" in this file.

[Referencing a GPO Administrative Template he's got linked in his answer.]

  • And how would this relate to logs other than eventlogs ? If it does, please explain. – Lorenz Meyer Nov 26 '14 at 7:58
  • @LorenzMeyer This setting only applies to Event Logs (as is generally the case in the Windows world). Other logs have to be handled individually, but it's not too difficult to whip up a script to do that task. – HopelessN00b Nov 26 '14 at 11:38

I don't know of any off the top of my head but you should be able to whip something up via batch files and Scheduled Tasks pretty quickly (PDK).

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