Tom Messmer wrote something like:
>
> LOGFORMAT (%Y-%m-%d %h:%n:%j %j %j %r %j %c %j %j %b %f %j %B %j %j %j)
>
> 2000-10-22 23:58:58 PDT 0 /results.html - 200 POST text/html 53734
> www.alibris.com http://www.alibris.com/results.html
> Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90) 24.218.241.51
> - -
>
> 2000-10-22 23:58:59 PDT 1 /cgi-bin/search.xml - 200 GET text/xml 20896
> www.alibris.com - Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
> 206.191.84.63 - -

Tom sent me this privately, but I'm sending the response to the list because
it's instructional.

Remember that his Browser Report only came out as Mozilla/4.0 or whatever,
without more detail.

OK, the problem is that your logfile is not in a good format. A machine
can't easily tell where the browser finishes and the next item begins. So
analog takes the rule of stop the %B at the first space. (In fact, that's
what "%B " means). Here that's the space _before_ "(compatible". The
remaining three %j's grab the rest of the line between them.

So, you need to arrange for your server to put the browser name in quotes,
so that it's obvious where it begins and ends. Or alternatively, put the
browser last on the line -- then it will extend all the way to the end of
the line.

-- 
Stephen Turner               http://www.statslab.cam.ac.uk/~sret1/
  Statistical Laboratory, Wilberforce Road, Cambridge, CB3 0WB, England
  "The new operating system will recover more easily from system crashes."
                          (Microsoft, aiming high with Windows Millennium)




------------------------------------------------------------------------
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]/
------------------------------------------------------------------------

Reply via email to