[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Log/Webalizer Weirdness...
- Subject: Re: [cobalt-users] Log/Webalizer Weirdness...
- From: "Zeffie" <cobaltlist@xxxxxxxx>
- Date: Fri Aug 25 23:20:37 2000
> > > Oops.. I meant to mention. I am using Webalizer 2.0 - it's handling
the
> > one web.log.1.gz file fine...the problem seems to be more with logs
> > out of existance for no real reason...
> > /etc/logrotate.d or /etc/logrotate.onboot files?
> I haven't modified anything - I just intalled Webalizer, and at first,
> web.log for my site2 did have data in it, and the web.log.1.gz file for
that
> site did have stats through July, just like the other site. Now, for some
> reason, web.log for that site only is always 0 and the web.log.1.gz only
> contains the data for the last few days. I've been watching it for 3 days
> now, and the only explanation I can think of is that when the split_logs
> script runs, it always creates a web.log for that one site that's bigger
> than 10M and then rotates it into web.log.1.gz... I'll have to manually
try
> splitting the access file to see what it makes to verify this.
"Sounds right"
> The question is, why did it then desetroy web.log.1.gz with all that
lovely
> data through July? I don't want to keep restoring the data just to have
it
> knocked out again - I havent tried restoring it yet because I want to
> understand what's happening first. Is there a size limit in some other
> rotate script I don't know about for the .gzs?
> -rw-r--r-- 1 root site2 0 Aug 22 04:03 web.log
Looks like this file was updated right after this one
> -rw-r--r-- 1 root site2 1527247 Aug 22 04:02 web.log.1.gz
> Here's what the site2 file for Logrotate.d has for the web... As you can
> see, the file is no where near 10M (in fact, it seems it's always 0):
> /home/sites/site2/logs/web.log {
> missingok
> compress
> size 10M
> }
You can change this file but the gui will change it everytime you make a
change to the site settings.
However you can delete them to stop all rotation, Edit them with rotation,
monthy, rotate 12, stuff like that...
Keep in mind that the exist in /etc/logrotate.d and /etc/logrotate.onboot.
> Any idea why it threw out everything that had been in web.log.1.gz before?
> Is there a logrotate file out there that controls the size of the .gzs? I
> can't find it yet, but I'm a bit new to logrotate...
>
did it reboot?
My Solution on the raq3 was to....
pico /etc/httpd/conf/httpd.conf
Right Below
CustomLog /var/log/httpd/access combined
I added
CustomLog /var/log/httpd/myserver combined
Then restarted apache with
/etc/rc.d/init.d/httpd restart
Then I use the resulting file just for webalizer. You have to setup or do
your own logrotation on that file
/var/log/httpd/myserver
Thats a serverwide file. if you want a site file add it to the
<virtualhost> area of the same file.
Zeffie