[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Webalizer - logrotate - missing days



Ok, in looking further at all my sites I noticed that there's a file called web.sessionlog that contains the log files for yesterday.

What I've done is change the cron job for Webalizer so that it runs at 5:30am instead of 4:02am. That way all the log rotation stuff is done and it has a chance to create the web.sessionlog files. I then changed the Webalizer files so that it uses web.sessionlog as the log files rather than the web.log files which seems to be causing the problems.

Is there any reason why this solution won't work? Am I wrong about what web.sessionlog contains (it has yesterday's complete logs for every site which makes me think it's ok.)

At 2/28/2002 10:01 AM, you wrote:
You could change the daily cron's for splitting/rotating the
logs, but this might void Cobalt's warranty or might be
overwritten by one of the next Cobalt jumbo patches.

I wrote a script which creates the webalizer stats daily (a bit
later than the logrotation stuff). My script checks if the log
file exists, is empty, is rotated etc. If it just has been
rotated the script first uses the compressed log for the
webalizer stats and then the new one.

If you would like some help with creating a script like this
contact me direct by e-mail.

/=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\
| Mark W Thompson            | Fax Number: (810)816-5203    |
| Web Stylists               | http://www.webstylists.com/  |
| mark-lists@xxxxxxxxxxxxxxx | ICQ #: 245378                |
\=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=/