On Tue, 21 May 2002, Matthew Miller wrote:

> I would like to have a set of reports based around the intervals in which
> there are the most hits:
> 
>   - top file requests during the n busiest minutes (ideally, a sublist for
>     each minute)
>   - top referrers during the the n busiest minutes
>   - perhaps also organization and domain reports for this
> 
>   - the same things for "in the last 7 days"
> 
> This seems like really useful information to me. What do people think the
> best way to get this might be:
> 
>   a) write a perl script which does this independently
>   b) write a perl script which feeds off of the analog's five-minute report
>   c) b + modify analog to be able to report on the top n five minutes 1)
>      ever and b) in the last week (or can it do this already?)
>   d) modify analog to do the whole thing
>   e) nicely ask the author if he thinks this would be a cool thing to add;
>      sit back, wait. :)
>   f) analog can already do this; duh. use option FOO.
>  

In reverse order:

f) No.
e) Not particularly, actually. I don't see why it's important which requests
came in during busy times? 
d) This would be hard. It's clear that it requires two passes through the
logfile, isn't it? (Or storing a _lot_ of state: see docs/faq.html#faq128)
c) Analog does tell you which is the busiest five minutes, at the bottom of
the Five Minute Report (for your favourite definition of "busiest").

Which I suppose leaves you at b). Or a).

Oh, you could do the following, if you don't want to parse logfiles
yourself. Write a very simple script, which runs analog twice: once to
calculate which are the top 5 minutes, and once with FROM and TO to restrict
analog to those minutes only. That's probably the easiest way to do it.

-- 
Stephen Turner, Cambridge, UK    http://homepage.ntlworld.com/adelie/stephen/
"This is Henman's 8th Wimbledon, and he's only lost 7 matches." BBC, 2/Jul/01

+------------------------------------------------------------------------
|  This is the analog-help mailing list. To unsubscribe from this
|  mailing list, go to
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  List archives are available at
|    http://www.mail-archive.com/[email protected]/
|    http://lists.isite.net/listgate/analog-help/archives/
|    http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------

Reply via email to