[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Logrotate problem
- Subject: Re: [cobalt-users] Logrotate problem
- From: Carrie Bartkowiak <ravencarrie@xxxxxxxx>
- Date: Thu Sep 6 03:11:04 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
On Thu, 6 Sep 2001 19:31:48 +0200, A. Lantink mumbled something like:
>>How can i solve this. Is it possible to run webalizer first, and
>>then logrotate. This would be the best solution.
That's part of the solution. Out of the box, Webalizer uses the logs themselves as a history and rebuilds the data *completely* every night. So what you want to do is get webalizer to run before logrotate, *and* set Webalizer to incremental mode, which will cause it to keep its own history files rather than relying on the logs for them.
1. Go into /etc/cron.daily and rename webalizer.pl to awebalizer.pl; for good measure rename logrotate to zlogrotate. Things in the cron folders are processed alphabetically.
mv webalizer.pl awebalizer.pl
mv logrotate zlogrotate
2. Open /etc/webalizer.conf and find the line that deals with Incremental, turn it to ON and uncomment it. In the section below it, give your history files a name (the default is fine) and uncomment it as well.
Then just for good measure, to get a head start on today's logs, go back to /etc/cron.daily and run webalizer manually one time.
/webalizer.pl
HTH
--
CarrieB
The main reason Santa is so jolly is because he knows where all the bad girls live.