Posted on 2002-05-02
I know Apache has a capability of rotates the log files periodically by moving or deleting the existing logs. But the bad thing is the server need to restart after moving or deleting the old logs in order for the new logs to be opened.
This is what i want to do:
Create 4 folders: let say Week1, Week2, Week3, Week4. For this month, log all files into these folders based on the appropriate week. Next month, it should goes back and re-use these folders to log the new files. When it logs, the old file should be deleted or at least emptied or overwrite the old files, instead of append to the old files. The reason for this is to save space, the log files grow big really fast and i don't have time to go in and empty it out. Is there a way to do this? Any third party software that does that? I know cronolog.org has one, but not exactly what i wanted though.