Hi,
I wonder if anyone can see what I'm doing wrong...
 
I moved host from Demon to 1and1 and for the first time got a  "Can't auto-detect format" in the analog error file, after using analog for years.
 
It was odd because the log files are very similar to the apache combined log files I had before. Typical output is
 
62.252.32.11 - - [04/Jun/2006:23:59:57 +0200] "GET /Images/furniture/covers/thumb/51.48.jpg HTTP/1.1" 200 1878 www.socialistparty.org.uk "http://www.socialistparty.org.uk/cgi-bin/bookform7.pl?nextten=31&ordernumber=2211&cat=0&findword=0&sortby=" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Tesco; .NET CLR 1.1.4322)" "86.29.142.254"
 
I downloaded analog 6.0, and tested it OK with my old log files.
 
1and1 told me the custom log:

CustomLog /var/log/httpd/access_log "%{Host}i %h %l %u %t \"%r\" %s %b %v \"%{Referer}i\" \"%{User-agent}i\"

So in the config file, after trying it exactly as given without success, I changed it to:

APACHELOGFORMAT (%s %h %l %u %t \"%r\" %s %b %v \"%f\" \"%u\")
LOGFILE C:\logs\splogs\2006\june06\*.*

Then I realised that %t is no good, and the second %s should be %S, and after further comparison with the actual log file, eventually got to:

APACHELOGFORMAT (%s %j %j [%d/%M/%Y:%h:%n:%j %j] \"%j %r %j\" %b %v %S \"%f\" \"%B\" \"%j\")

And I get error file output:

C:\Program Files\analog2\analog6\analog.exe: Warning M: Logfile
  C:\logs\splogs\2006\june06\*.* contains lines with no dates, which are being
  filtered
C:\Program Files\analog2\analog6\analog.exe: Warning L: Large number of
  corrupt lines in logfile C:\logs\splogs\2006\june06\access.log.22: turn
  debugging on or try different LOGFORMAT
    Current logfile format:
      %c %j %j [%j/%j/%j:%S:%j:%j %j] "%j %j%w%r%wHTTP%j %j" %b %v %j "%j" "%j" "%j"\n
C:\Program Files\analog2\analog6\analog.exe: Warning L: Large number of
  corrupt lines in logfile C:\logs\splogs\2006\june06\access.log.23: turn
  debugging on or try different LOGFORMAT
    Current logfile format:
      %c %j %j [%j/%j/%j:%S:%j:%j %j] "%j %j%w%r%wHTTP%j %j" %b %v %j "%j" "%j" "%j"\n
C:\Program Files\analog2\analog6\analog.exe: Warning R: Turning off empty time
  reports,
etc...

Various other alternatives have failed. Debug seemed to churn out the logs to error.txt without suggesting any errors

Any ideas?

cheers

Pete


 

+------------------------------------------------------------------------
|  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