Re: Webalizer SOS
On Mon, 15 Oct 2001 11:30, Marcin Sochacki wrote:
> > Does anyone know how to get webalizer to
> > re-read all the apache log files ?
> >
> > Even the gunzipped ones ?
>
> Remove the webalizer.current file and then specify all the logfiles,
> one by one on the command line. Eg.:
>
> webalizer -c /etc/some.webalizer.conf /var/log/apache/access.log.3.gz
> webalizer -c /etc/some.webalizer.conf /var/log/apache/access.log.2.gz
> webalizer -c /etc/some.webalizer.conf /var/log/apache/access.log.1.gz
> webalizer -c /etc/some.webalizer.conf /var/log/apache/access.log.0
> webalizer -c /etc/some.webalizer.conf /var/log/apache/access.log
>
> Notice the reversed order -- the logfiles must be chronological.
An alternative is:
clfmerge /var/log/apache/access.log* | webalizer -c /etc/whatever -
clfmerge from my logtools package will use exactly the same algorithm as you
would use if I gave you several sets of ordered cards to merge into an
ordered set. So it's thousands of times faster than doing "cat * | sort"
type operations and uses hardly any memory.
clfmerge was written for situations where you have several web servers in a
load-balancing setup and want to process all their logs together. But I also
use it for single-server machines to solve the situation where web logs are
only partially ordered.
--
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/ Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/ My home page
Reply to: