I need to generate incremental stadistics each month,
so it is right to implement the following ?
on my analog.conf file I have:
LOGFILE /var/apache/mydomain.log*
CACHEFILE /var/apache/mydomain.cache*
OUTPUT COMPUTER
OUTFILE /var/stats/mydomain.dat%Y%M
CACHEOUTFILE /var/apache/mydomain.cache%Y%M
then my script does:
1. run analog
2. mv /var/apache/mydomain.log* /var/processed/mydomain.log.*
3. apachectl graceful
4. now my domain.dat%Y%M contains stats from all this month logs plus stats from
previous months logs
done ?
thanks,
jaume.
> Stephen Turner wrote:
>
> > On Mon, 31 Jul 2000, Jaume Teixi wrote:
> >
> > > I want to run analog and output to computer file for treatment, then I need:
> > >
> > > once time a log file is read, start to log in a new file
> > > OR
> > > analogs mark the last line readed on the logs
> > >
> > > then next month I need to analog adds news stats to the old output file in
> > > order to get incremental stats
> > >
> > > how to implement this ?
> > >
> >
> > Analog doesn't do this itself. You can either analyse only whole,
> > already-rotated logfiles; or you can use FROM and TO to make sure to analyse
> > each line exactly once.
> >
>
> You also can't combine periodic reports to generate reports of larger periods. If
> you do daily reports, with only the top 20 requests shown, then combine them for a
> "weekly" the resulting numbers will be completely wrong -- especially near the
> bottom of the list, where requests may not show up on some days and will
> efectively be counted as 0.
>
> Jeremy Wadsack
> Wadsack-Allen Digital Group
------------------------------------------------------------------------
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]/
------------------------------------------------------------------------