Jason Linhart wrote:
On 9/3/00 6:51 AM Michael Janich ([EMAIL PROTECTED])
wrote:
>I'm generating a log report using java servlets [no byte count, since
>unknown], which lines look like
>
>210.177.77.1 - oooo [Fri Aug 18 16:06:59 CST 2000] "GET
>/servlet/com.rawmart.Browse?show=nothing&display=profile&profile=preferences
>HTTP/1.0" 200 -
>
>and I like to get statistics on the use of let's say "show=" parameter.
>The lines:
>
>LOGFORMAT (%s - %u [%j %M %d %h:%n:%j %j %Y] "%j %r %j" %c -)
>ARGSINCLUDE /servlet/com.*
>SEARCHENGINE /servlet/com.rawmart.Browse* level
>SEARCHENGINE /servlet/com.rawmart.Browse id
>SEARCHENGINE *Browse* lang
>SEARCHENGINE *Browse search
>SEARCHENGINE *Browse display
>SEARCHENGINE *Browse show
>SEARCHENGINE http://* level
>SEARCHENGINE * action
>
>Doesn't do anything. I always get:
>
>./analog: Warning R: Turning off empty Search Query Report
>./analog: Warning R: Turning off empty Search Word Report
>
>I've debugged the programme: it seems never to call any of Nnextname()
>or nnextname()
>functions. It calls checksearchrep() with NULL as first parameter
twice.
The SEARCHENGINE command applies to the referrer field, not the request
field. In theory you could get it to work by changing the log format
to
treat that field as the referrer, but I'm not sure how Analog would
handle the lack of "http://" and a domain name.
Thanks, Jason, for your quick and helpful reply. I was searching for three
months for
this feature. Stephen, would you please change the manual to CLEARLY state
that
this works only on the referer. THANKS.
But now back to the problem. I got my report, but that's still not what
I'm looking for.
Let's say I have one parameter in all URLs, called 'lang' for language.
Now I want a report
for how many people see what language. The next level would be I want
a report on the
local self-built site search-engine - I'd like a report, that tells
me what the people on my
site have searched for most, etc.
So I need different reports on different search words, not just
one report, that says.
My report with all CGI parameter looks now like:
Search Query Report
Listing queries with at least 1 request, sorted by the number of requests.
reqs: search term
-----: -----------
13850: 0
1255: 2
881: 1
201: -1
12: page
2: 3
Which mixes all the parameters.
Please don't tell me, that NOBODY ever had this problem before!!! I've
talked to Stephen about this
two years ago and he said it would be in version 4. Which it is somehow,
just needs a little restructuring...
While trying to find what's wrong with my parameters I debugged
the code alot - I'm not smart enough
to understand and modify it, else I'd be delighted to be of service
here.
Who else has this problem? ANYBODY out there who does CGI stuff/servlets/...?
--
Michael Janich, Chief Technology Officer, RawMart.com, Hong Kong
17/F MassMutual Tower, 38 Gloucester Rd, Hong Kong SAR, China
Tel: +852 2861-4615. Fax: +852 2865-3865. http://www.rawmart.com