On Thu, 3 Aug 2000, Jaume Teixi wrote:

> so that's the solution ?
> 
> analog.conf
>   # read all logs from this month's weeks
>   LOGFILE /var/apache/mydomain.log*
>   # read cache containning previous acumulative stats
>   CACHEFILE /var/apache/mydomain.cache
>   # generate computer data output
>   OUTPUT COMPUTER
>   # generate stats from present month on logs + previous months on cache
>   OUTFILE /var/stats/mydomain.dat%M%Y
>   # remove previous historical cache for new historical cache
>   CACHEOUTFILE /var/apache/mydomain.cache
> 

Actually, analog will refuse to overwrite an existing cache file. You can
write to /var/apache/mydomain.cache.new and then "mv /v/a/m.c.new /v/a/m.c"
in your script. This will work. But I prefer making a new cache for each
month, just from that month's logfiles, not using previous cache files. This
is the procedure which I describe in docs/cache.html.

-- 
Stephen Turner               http://www.statslab.cam.ac.uk/~sret1/
  Statistical Laboratory, Wilberforce Road, Cambridge, CB3 0WB, England
  "The new operating system will recover more easily from system crashes."
                          (Microsoft, aiming high with Windows Millennium)

------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------

Reply via email to