On Tuesday, September 12, 2006 10:32 AM [EDT],
Klas Germunder <[EMAIL PROTECTED]> wrote:

i am trying to add browser report and i have the following
information about the set up.

Log
'213.50.131.26' '[12/Sep/2006:16:17:28 +0200]' 'GET
/images/analogo.png HTTP/1.1' Mozilla/5.0 (Windows; U; Windows NT
5.0; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
'C5388FC08ECCCD2DE1871F4BEA185501'

logformat
APACHELOGFORMAT ('%h' '%t' '%r' %B '%u')



analog: Warning L: Large number of corrupt lines in logfile

/usr/local/bin/apache-tomcat-5.5.12/logs/access/localhost/localhost_access_l
og.2006-09-12.log:
 turn debugging on or try different LOGFORMAT
   Current logfile format:
     '%S' '[%d/%M/%Y:%h:%n:%j]' '%j%w%r%wHTTP%j' %j '%u'\n

but in the error file i get %j at the user agent why?

Your APACHELOGFORMAT says that the browser string ends at the first space, and that the first character after that space is '. But the first character after the space in your example is (, so that line doesn't match your LOGFORMAT.

Try
APACHELOGFORMAT ('%h' '%t' '%r' %B'%u')

That will tell Analog that the Browser string continues until it encounters a '. As long as there aren't any single quote characters in the browser string itself, that should allow Analog to recognize the Browser string.

Aengus

+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Analog Documentation: http://analog.cx/docs/Readme.html
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------

Reply via email to