hacking new Lire filters and reports (was: Re: Average daily requests)
Brett Simpson
simpsonb at hillsboroughcounty.org
Fri Jan 14 16:02:45 CET 2005
On Friday 14 January 2005 04:09, Joost van Baal wrote:
> On Thu, Jan 13, 2005 at 11:44:10AM -0500, Brett Simpson wrote:
> > I'm trying to figure out how to generate a count on average hourly and
> > daily requests. I can see that an average is available for Compressed
> > URLS and Files.
> I believe your code could work; just try it and see. See also
> Lire::Average(3pm).
I tried it with a field="request_total" and it complained about it being
missing from the schema. So I changed it to "requested_page" but it shows
0.00 in the report.
<lire:report-calc-spec>
<lire:timegroup period="$period" label="Period">
<lire:count name="request_total" label="Requests"/>
<lire:avg name="avg_request" field="requested_page" label="Average"/>
<lire:count name="request_ratio" ratio="table" label="% Total"/>
</lire:timegroup>
</lire:report-calc-spec>
> BTW: you can test your www filters and reports by sticking them
> somewhere under ~/.lire/www/filters/ and ~/.lire/www/reports/ : you
> don't have to clutter your system with yet-untested stuff.
Cool.
Thanks,
Brett
--
To UNSUBSCRIBE, email to questions-request at logreport.org with a subject of
"unsubscribe". Trouble? Send an email with subject "help" to
questions-request at logreport.org
More information about the Questions
mailing list