On Wed, 5 Oct 2005, R, Rajesh (STSD) wrote:

> 
> Can u tell me more about how I can do 
> 'log file rotation' in Apache ?? 
> 
> If its already there, then we can write a perl wrapper
> over it to do the processing to create a single file 
> for exactly x to y date.

Assuming you're using Apache, I have a simple shell script that I've
used to manage this for quite a while now. It scans the apache config
file, and (gracefully) rotates any logfiles it finds there, compressing
the rotated files and renaming them to a dated filename.

You can grab a copy here:
   http://logsoft.com/apache/rotate_apache.sh

Run it as './rotate_apache.sh -h' to get a usage message.

Be certain to edit it to set the email address to whom errors get sent
to, and the path to your compression utility.

Hope this helps.

-- 
Steve Reppucci                                       [EMAIL PROTECTED] |
Logical Choice Software                          http://logsoft.com/ |
=-=-=-=-=-=-=-=-=-=-  My God!  What have I done?  -=-=-=-=-=-=-=-=-=-=

+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Analog Documentation: http://analog.cx/docs/Readme.html
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------

Reply via email to