Author |
|
Razzi29
Joined: 06 Feb 2023 Posts: 5 Location: Canada
|
Posted: Tue 07 Feb '23 17:03 Post subject: Rotating Logs (Apache Windows) |
|
|
What is the preferred method, and best practice to configure apache for Windows and how to rotate logs every day so the access.log files do not get big or any other logs for that matter? I would like to rotate them everyday. |
|
Back to top |
|
sailor
Joined: 17 Apr 2015 Posts: 82 Location: US
|
Posted: Wed 08 Feb '23 13:15 Post subject: Re: Rotating Logs (Apache Windows) |
|
|
I use cronolog, which does it midnight:
CustomLog "|D:/Apache_files/cronolog.exe D:/logs//access_%Y-%m-%d.log" combined |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 08 Feb '23 15:21 Post subject: |
|
|
I use mod_log_rotate. To be fair it doesn't work with the error log. |
|
Back to top |
|
Razzi29
Joined: 06 Feb 2023 Posts: 5 Location: Canada
|
Posted: Wed 08 Feb '23 15:56 Post subject: |
|
|
Is cronolog part of Apache? I see a rotatelog.exe but no nothing related to cronolog in the Apache folders. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|