>Could anyone please help me build a rollover script for logfiles and
>analysis?? I would be happy to post the results to this list...
>
>I am on RH6.1 (intel). I have read Rebecca Minarik's script, and just
>need to tweak it. I am not a unix/cron expert, but neither am I stupid! I
>am willing to try if someone can spare a little effort with me...
My method may be a titch simplistic, but I'm getting the results I want anyway so i
don't care. *g*
I set up my analog.cfg the way I wanted... output file of index.html in the /webstats
directory, in my case, as well as telling analog to parse /var/log/httpd/access_lo*
for its data.
I made two small edits to existing RedHat-installed files. In cron.daily's logrotate
script I inserted a command to run analog before the actual log rotation occurs. (I
did this mainly to completely avoid any conceivable cross-purposes on the part of
analog and the log rotation scheme.) And in the logrotate.conf file I upped the weeks
to 12 so I can have three months' worth of data in my report.
As RedHat is already checking log rotation daily, and comes default (in 6.2 anyway)
setup to keep 4 weeks of rolled-over logs, there's not much to it. YMMV, of course,
and your goals may not be the same as mine.
Karel P Kerezman
Network Administrator
Entercom Radio Portland
KGON KKSN-AM/FM KNRK KFXX KRSK
Visit the Lab: http://washuu.kgon.com
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GO d- s: a- C++ UL P+ L++++ E---- W++ N+++ o-- K- w---
O M V-- PS+ PE Y+ PGP t 5++ X-- R tv+ b+++ DI++ D++
G e h---- r+++ y++++
------END GEEK CODE BLOCK------
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------