I guess, this script needs to be running around like a daemon to pack off log files based on log-file-size/time-elapsed.. etc.
And that's exactly what I've been saying. -- Rajesh R -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Reppucci Sent: Wednesday, October 05, 2005 6:09 PM To: Support for analog web log analyzer Subject: RE: [analog-help] Date based Log File Analysis. 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 +----------------------------------------------------------------------- +- +------------------------------------------------------------------------ | 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 +------------------------------------------------------------------------

