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

RE: [cobalt-users] Webalizer and large logs



You can also manually change the way the logs rotate, I prefer to have a fix
date.
You have to find out the site number , then you go to /etc/logrotate.d and
logrotate.onboot .Make sure you make the change on both places for the
sites.

Vi or pico site???? , just change the size ?M to either daily,weekly or
monthly so this way you can have a complete set of data just use the rotated
zip web 
This sample is one of my site which I do the statistics monthly.

/home/sites/site30/logs
2123563 Jan  1 05:22 web.log.1.gz <----- input to webalizer

/etc/logrotate.onboot
vi site30
/home/sites/site30/logs/mail.log {
   missingok
   compress
   size 10M
}

/home/sites/site30/logs/ftp.log {
   missingok
   compress
   size 10M
}

/home/sites/site30/logs/web.log {
   missingok
   compress
   monthly <-------------------------------

-----Original Message-----
From: Ken Marcus -Precision Web Hosting [mailto:ken@xxxxxxxxxxxxxxxx] 
Sent: Sunday, January 19, 2003 2:08 AM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-users] Webalizer and large logs

> We've been trying to figure out why webalizer seems to occasionally (but
> definitely on a pattern) lose data.  One one site it's been happening
> every other day; on another every four days.


I normally just increase the site quota so that the logs don't rotate so
often. If I recall they rotate when they hit 10% of the quota.

Ken Marcus
Precision Web Hosting



_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users