Equivalent of LogRotate for Windows?
We have a huge logfile being written by a vendor's application. Let's assume the vendor won't do anything that we ask. Is there any way of rotating that logfile? We're looking at about 300 MB an hour being written - I'd much rather chunk that into 10 MB pieces, and let anything older than a day or over 1000 files fall off a cliff.
(I know I know, possible duplicate of How do you rotate apache logs on windows without interrupting service?)
Aha - the Chomp log was dead, but searching for "chomp logrotate" brought me to its new site. I'll give it a try tomorrow and reply if I like it. I'd still like to hear about software anyone else is using that works for this.
Solution 1:
As much as I wince at the suggestion, installing Cygwin is one of the very few options that you have available to you. From there, you can use logrotate
.
Solution 2:
I haven't used it yet, but LogRotateWin is a native implementation of logrotate for Windows that looks promising. At least it doesn't require Cygwin.
Solution 3:
Have a look at logwot8, which is a packaging of logrotate, a limited shell environment and required cygwin layer components ready to work out of the box (4 MB installer size). You need to customize configuration file according to your reqiurements. It is free for use and distribution under 2-sentence BSD license.
Disclaimer: I am the developer :-)