rotating logs every month

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...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-27-2005
mr_scary
 
Posts: n/a
Default rotating logs every month

Hi. How do I set up a monthly log rotation for my Apache 1.3.29 access
log?

--
Peter

  #2 (permalink)  
Old 09-27-2005
mr_scary
 
Posts: n/a
Default Re: rotating logs every month

Grrrr.

  #3 (permalink)  
Old 09-29-2005
rknirav
 
Posts: n/a
Default Re: rotating logs every month

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...

  #4 (permalink)  
Old 09-29-2005
mr_scary
 
Posts: n/a
Default Re: rotating logs every month

But a month is variable in time. That's my problem.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:15 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0