|
From: Joaquim H. <jo...@we...> - 2006-11-21 19:34:23
|
Mmm.. true; except the configuration gets a little bit spread out if I do t= hat. Log rotation in one place, awstats in another, and the Apache configur= ation in a third.. The way I ended up doing it for now is to use: CustomLog "|/usr/local/apache/bin/rotatelogs /sites/mydomain.com/logs/acces= s_%Y%m%d 86400" combined And then set the awstats configuration file to process "today minus one day= "'s log at 06:00. This is *not* neat, *nor* cool, but it may work. One side effect is that I = don't get the rotated log file to compress automatically, but a quick shell= script to compress all access_YYYYMMDD that are not today should solve tha= t. -joho ------------------------- Ursprungligt meddelande: Fr=E5n: Jamie Cameron <jca...@we...> =C4rende: Re: [webmin-l] Apache, Awstats, and Log rotation One solution would be to add a call to run awstats for the log to the=20 pre-rotation script of the log's logrotate configuration.. |