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

Re: [cobalt-users] Carrie's A_Webalizer



> > No, I think you're right. This was suggested to me by Zeffie, but

thats a beta solution....

it's "alizer"  I pronunce it "a lies er"

> Its the log rotate problem that sucks.

.... well you could check the archives some more (dan joke) but it's a fast
story anyway......

in /etc/logrotate.d and /etc/logrotate.onboot are the logrotate files that
will get overwritten by the gui at every chance it gets (making site config
changes).

So you can't just play with the siteX files in there without making for
maintance work in the future...  So this is what I reccomend and do for
"sites" that get massive hit's and how it works

It cures the stats missing for a day or stopped problem in alot of cases....

as you have figured out (maybe)  the problem is that logrotate splits the
logs up before it rotates the "web-logs" and this is done in the "apache"
file in both logrotate directories.... so...  seeing how this is out of
order....

rename the apache files zapache
ie:
mv /etc/logrotate.d/apache /etc/logrotate.d/zapache
and
mv /etc/logrotate.onboot/apache /etc/logrotate.onboot/zapache

now with that done this is what happens

logrotate runs.... rotates sites "web-log" files .....  rotates apache files
and "refills" the sites "web-log" files with current data.... no matter how
big it is.... then you want to run webalizer on them.... once is fine...

The first time around you need to make sure and get the stats from the "old
way of doing it".  To make sure you get whatever might of been in the
"web-log" files I create a file called "alizer" in /etc/cron.daily  Basicly
you can just copy the webalizer one.... (cp /etc/cron.daily/webalizer
/etc/cron.daily/alizer and then "webalizer will run before and after
rotation...  this is only neccessary for one rotation.

So the use of "alizer" is now depreicated to a temp fix file thats good for
about a day and everyday logrotate runs you get a boat load of stats in
"web-log" that you might want to increase the sites quota over....

Hope this helps
Zeffie
http://www.zeffie.com/
"wondering what day this will post"