logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Rotating Logs (Apache Windows)
Author
Razzi29



Joined: 06 Feb 2023
Posts: 5
Location: Canada

PostPosted: Tue 07 Feb '23 17:03    Post subject: Rotating Logs (Apache Windows) Reply with quote

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: 77
Location: US

PostPosted: Wed 08 Feb '23 13:15    Post subject: Re: Rotating Logs (Apache Windows) Reply with quote

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: 7288
Location: Germany, Next to Hamburg

PostPosted: Wed 08 Feb '23 15:21    Post subject: Reply with quote

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

PostPosted: Wed 08 Feb '23 15:56    Post subject: Reply with quote

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: 7288
Location: Germany, Next to Hamburg

PostPosted: Thu 09 Feb '23 10:07    Post subject: Reply with quote

No cronolog isn't while rotatelogs.exe[1] is part of it.


[1] https://httpd.apache.org/docs/2.4/programs/rotatelogs.html
Back to top


Reply to topic   Topic: Rotating Logs (Apache Windows) View previous topic :: View next topic
Post new topic   Forum Index -> Apache