This is a discussion on rotating logs every month within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi. How do I set up a monthly log rotation for my Apache 1.3.29 access log? -- Peter...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
to rotate the access logs after every month just modify accesslog directive with following: AccessLog "|rotatelogs.exe logs/access_log 5M" Here I have specified size of the log file, optinally you can specify time in seconds so if you want to rotate log after every hour do following: AccessLog "|rotatelogs.exe logs/access_log 3600" Restart the webserver after above given changes. Let me know if you have any doubt. Nirav... |