I have been using rotatelogs for a while to split up the logs into manageable portions. The problem is that after leaving the server run for a while I eventually see like 20 or 30 instances rotatelogs.
I am also experiencing occasional server hang-ups. I am unsure if this is caused by the extraneous rotatelogs instances.
So I found cronolog to be an alternative to rotatelogs that had a windows binary compiled for me. Happy with my new solution, I went to sleep.
Today I look and now I have about 10 instances of cronolog.exe in my task manager, and I'm sure if I leave it be for a couple days I'll be back to the 20 - 30 instances and an increasingly less responsive web server.
I guess I am just trying to find out if there is any other way to rotate my log files as I am using AWStats to read my logs hourly, and ginormous single access.log is out of the question.
Here are the CustomLog commands I used for both of these log rotater applications (one at a time of course)
- Code: Select all
CustomLog "|C:/logs/rotatelogs.exe C:/logs/access%Y%m%d.log 86400" mylogs
- Code: Select all
CustomLog "|C:/logs/cronolog.exe C:/logs/access%Y%m%d.log" mylogs
I need a solution, cuz I really don't want to have to reboot my server, or manually kill these extra processes.
I have seen mod_log_rotate as an alternative, but I am unsure if it will work with my setup, or where to get a compiled version for Windows.
Any thoughts please?
Thanks,
Owen