On Tue, 4 Apr 2000, Kevin Hemenway wrote:
>
> Our current analyzer stores everything in a tab delimited flatfile - it
> doesn't remember referrer's, it doesn't remember much of anything besides
> hits and total bytes for hits. And that's just fine.
This is pretty much what analog's cache file does. It stores the total
number of hits for each item, but doesn't cross-reference (say) files and
referrers.
> Ok. So, how would I go about this? One statement worries me: "A couple of
> other minor points: the pattern of failed requests and redirected requests
> over time is not recorded in the cache file. So although the total number
> will still be correct, the number in the last 7 days can be under-reported
> subsequently. And times are only recorded to five-minute resolution."
>
> One of my methods of madness is to take a look at the weekly logfile, find
> out how many accesses happened that week and add that to a general total on
> the home page of my site (Disobey.com). This statement worries me in that
> I'm very vain when it comes to total hits (over 7 million now).
>
> Would this ruin that vanity?
>
> [...] Uh. Why would Analog look at the historic
> cache files to determine the hits for the brand-new last seven days report?
>
The only issue is when the historical cache file overlaps the last seven
days. Does that answer your question?
> Ignoring that question, where are the cache files created?
Anywhere you want.
> directory called /usage - have analog send its html reports there, and
> keep the cache reports in /usage/cache? And then each week, Analog would
> read from /usage/cache plus the new weekly log file to generate a new
> report under /usage?
>
> Would this new report under usage, because of the cache have total hits and
> monthly stuff based on how back the cache goes?
>
I guess you've got two main choices. The one I recommend in the docs is to
create a cache file from each logfile: then when you want a report, analyse
all the cache files. The other would be to create a cumulative cache file
each week based on the last cache file and the new week's logfile.
Personally I think this second procedure is much more likely to get
confused, and when it does, all the data is corrupted together. :)
> Again, thanks for explaining all this to an Analog newbie. I hope I'm not
> embarrassing the mailing list all that much ;)
>
Not at all. I wish all the questions here were this intelligent. :)
--
Stephen Turner http://www.statslab.cam.ac.uk/~sret1/
Statistical Laboratory, 16 Mill Lane, Cambridge CB2 1SB, England
"8th March 2000. National No Smoking Day. Ash Wednesday." (On a calendar)
------------------------------------------------------------------------
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]/
------------------------------------------------------------------------