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

Re: [cobalt-users] webalizer..



On Sun, 25 Feb 2001, Carrie Bartkowiak wrote:

> > On one of my vsites's webalizer stats, almost the whole month of stats
> > disappeared..  I only see day 23 and 24.  Can anyone explain to me what
> > happened and how can I fix it?
> 
> Your vsite must be very busy!
> I have two sites on my machine that are doing this. Every 2 days... *bink!*
> everything's gone. It's like Webalizer starts over.
> Nosing around through god knows where looking for info on this, I think I
> might have found the answer.
> 
> Go into that vsite's /logs directory and see if you see a .tar.gz'd log
> file.
> 
> If you do, I *think* this is what's happening:
> The logs are getting bigger than your max log file size setting. When they
> do, logrotate will zip 'em up and dump them there in the /logs directory in
> case the site admin wants to look at them.
> Then cron moves on to webalizer.pl (because it's later in the list
> alphabetically) and webalizer's got nothing to look at. So it builds its
> info off of what's there - which is a new, much shorter version of the
> logfiles.
> 
> What Zeffie and I tried is naming 'webalizer.pl' to 'awebalizer.pl' so that
> every night, cron will hit webalizer *first* and then go on to logrotate.
> I'm watching this for a few days to see if this works. It *seems* that it
> is, but the sites have gotten lower than normal traffic this week so maybe
> the log file size hasn't been triggered yet.
> If it doesn't work, I'm going to go hunting around on some logfile size
> settings.
> 
> Hope that helps?
> 
> CarrieB


Thanks Carrie!  Here is short list of whats in the vsite's log directory:

-rw-r--r--   1 root     site11   15652104 Feb 25 04:02 web.log
-rw-r--r--   1 root     site11    1413655 Feb 23 04:02 web.log.1.gz

Looks like web.log is 15 megabytes.  Damn, this must be one busy site!
Well, it appears that there is a tarball of the old log.  Let me know if
renaming the webalizer.pl does anything.

Thank you both!

-Weihan