I've set up a fair number of sites with cache files. I agree with Aengus that 
they can be confusing for the beginner. First get Analog working and then 
consider cache files -- if you are likely to change what you want in your 
reports you will usually need to the log files to do that. Also if you want to 
run any sub reports for drill-down analysis you'd need the log files for that 
as well.

The way I have done cache files is to have them include all the data for each 
day, running analog daily with a CACHEFILEOUT configuration and one LOGFILE 
setting with FROM and TO set for the day in question. Then, I run analog again 
with the CACHEFILE setting to load all the daily cache files for the month 
selected and an OUTPUT setting for the report.


--
 
Jeremy Wadsack
Seven Simple Machines


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:analog-help-
> [EMAIL PROTECTED] On Behalf Of Aengus
> Sent: Tuesday, July 18, 2006 5:32 AM
> To: Support for analog web log analyzer
> Subject: Re: Re[2]: [analog-help] monthly stats
> 
> On Tuesday, July 18, 2006 3:07 AM [EDT],
> Marian Vicena <[EMAIL PROTECTED]> wrote:
> 
> >> The simplest and most effective way to use cachefiles is to create a
> >> seperate cachefile for each logfile. Then, when you want to create a
> >> weekly or monthly report, run Analog against just the cachefiles.
> >
> > So everyday I create new cache, e.g. cache1.db, cache2.db, etc. until
> > cache31.db and then when running the monthly analog process I define
> > in the appropriate config all those 31 cache??.db files with CACHEFILE
> > directive? Is this what you are advising me?
> 
> I'd advise that you don't use cache files at all - they can be confusing,
> and severely limit the flexibility of Analog (you can't reliably modify
> your
> reports if they are based on cache files). Therefore you shouldn't use
> cache
> files until you have been using Analog long enough to be entirely satisied
> with your Analog reports, and that you won't be changing them.
> 
> The simplest error that you can make with cache files is to include the
> same
> information twice in the cache file when making a cumulative cache file.
> The
> simplest way to avoid this is to create a cache file for each logfile.
> http://analog.cx/docs/cache.html#cacheproc
> 
> >> Alternatively, you can also run Analog against yesterdays cachefile
> >> and yesterdays logfile to create a new cachefile that you will use
> >> with todays logfile, etc. But if you're not careful, you can end up
> >> counting the same traffic multiple times.
> >
> > Can you show me example on how to do this?
> 
> Not really - I've never used cache files, so if the description above
> doesn't make sense, I'd rather not make it any more detailed. Deleting
> logfiles involves throwing data away, and I don't want to offer advice
> that
> might cause problems further down the road.
> 
> >> Unless you're dealing with several gigabytes of logs per day, simply
> >> zipping your logs may be a more effective way to solve whatever
> >> problems you were having in the first place.
> >
> > This will be done only in case I cannot figure out how to do it with
> > analog without the need to keep all the logs.
> 
> You haven't said why you want to get rid of the logs. How big are they?
> How
> long are your reports taking to run?
> 
> Aengus
> 
> +------------------------------------------------------------------------
> |  TO UNSUBSCRIBE from this list:
> |    http://lists.meer.net/mailman/listinfo/analog-help
> |
> |  Analog Documentation: http://analog.cx/docs/Readme.html
> |  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
> |  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
> +------------------------------------------------------------------------

+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Analog Documentation: http://analog.cx/docs/Readme.html
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------

Reply via email to