I need help getting analog to understand the format of your apache logfiles, I have tried a combination of flags in analog.cfg,  no joy to date,
 
The combination of  LOGformats  I've tried are below :
 
#LogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\""
#LogFormat "%V %h %l %u %t %U \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
#APACHELOGFORMAT ("%V %h %l %u %t %U \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"")
#APACHELOGFORMAT (%V %h %l %u %t %U \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\")
#APACHELOGFORMAT (%S %s - - [%d/%M/%Y:%h:%n:%j %j] "%j %r %j" %c %b "-" "%B"\n)
LOGFORMAT (%S %s - - [%d/%M/%Y:%h:%n:%j %j] "%j %j%w%r%wHTTP%j %j" %c %b "-" "%B"\n)
#APACHELOGFORMAT (%j %c - - [%j/%j/%j:%S:%j:%j %j] "%j %j%w%r%wHTTP%j %j" %j %b "-" "%j"\n)
Each time analog barks  with error of the form below
 
./analog
./analog: analog version 4.11/Unix
./analog: Warning L: Large number of corrupt lines in logfile access.log: try
  different LOGFORMAT
  (For help on all errors and warnings, see docs/errors.html)
    Current logfile format:
      %S %s- - [%d/%M/%Y:%h:%n:%j %j] "%j %j%w%r%wHTTP%j %j" %c %b "-" "%B"\n
./analog: Warning R: Turning off empty time reports
./analog: Warning R: Turning off empty Request Report
./analog: Warning R: Turning off empty Failure Report
./analog: Warning R: Turning off empty File Type Report
./analog: Warning R: Turning off empty Directory Report
./analog: Warning R: Turning off empty Host Report
./analog: Warning R: Turning off empty Domain Report
./analog: Warning R: Turning off empty Referrer Report
./analog: Warning R: Turning off empty Failed Referrer Report
./analog: Warning R: Turning off empty Browser Report
./analog: Warning R: Turning off empty Organisation Report
./analog: Warning R: Turning off empty Search Query Report
./analog: Warning R: Turning off empty Search Word Report
./analog: Warning R: Turning off empty Browser Summary
./analog: Warning R: Turning off empty Operating System Report
./analog: Warning R: Turning off empty File Size Report
./analog: Warning R: Turning off empty Status Code Report
 
sample entries from our apache log file is attached .
 
www.website.com ip_address - - [16/May/2000:13:19:28 -0400] "GET /robots.txt HTTP/1.0" 404 282 "-" "Mozilla 4.0
/(compatible; MSIE 5.0; Windows 98)"
 
 
I'll appreciate all hints or a snaphot from any one currently using analog with apache with a logformat  similar to ours.
 
 
Many Thanks.
 
 

Reply via email to