[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] blank web.log files
- Subject: Re: [cobalt-users] blank web.log files
- From: "Zeffie" <cobalt-users@xxxxxxxx>
- Date: Fri Jun 1 16:54:25 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> I have read through all the posts on reconfiguring logrotate to rotate
stats
> logs for each virtual site on a monthly basis rather than by size.
> I followed everything and changed each site's file in /etc/logrotate.d/
and
> logrotate.onboot with the following:
>
> /home/sites/site1/logs/mail.log {
> monthly
> rotate 12
> compress
> mail logs@xxxxxxxx
> errors logs@xxxxxxxx
> }
>
> /home/sites/site1/logs/ftp.log {
> monthly
> rotate 12
> compress
> mail logs@xxxxxxxx
> errors logs@xxxxxxxx
> }
>
> /home/sites/site1/logs/web.log {
> monthly
> rotate 12
> compress
> mail logs@xxxxxxxx
> errors logs@xxxxxxxx
> }
>
> I've set this up on a RaQ3 & RaQ4 and both have had the same effect of
> producing nothing at all! All I have now is web.log files of 0 bytes
which
> is stopping webalizer from working. Can anyone shed some light on what I
> may have missed?
>
Well a couple things come to mind here.... one you didn't specify the file
size in logrotate... and it might just be crunching them.... also you might
want to try my zapache trick.... just move the apache logrotate files (in
both dirs) to zpache... then wait a couple days... this causes the sites
web.log files to be proccessed before apache and reloads the web.log
files...
Zeffie
http://www.zeffie.com/