AWStats LogFormat Configuration

Help! I have read the Manual and FAQ and tried all sorts of ways but I can't get the darn thing to work. What do I put in the LogFormat parameter to get AWStats to read IIS 5.0 W3C log files?

Here is the syntax for my log files:

#Fields: date time c-ip cs-username s-ip s-port cs-method cs-uri-stem cs-uri-query sc-status cs(User-Agent)

Also, here is the error message it spits out when I try to parse the log files:

AWStats did not find any valid log lines that match your LogFormat parameter, in the 50th first non commented lines read of your log.
Your log file D:\IISLogs\www\W3SVC4\ex040216.log must have a bad format or LogFormat parameter setup does not match this format.

Your AWStats LogFormat parameter is: %time2 %host %other %other %method %url %code %bytesd %uaquot
This means each line in your web server log file need to have the following personalized log format:
%time2 %host %other %other %method %url %code %bytesd %uaquot

And this is a sample of records AWStats found in your log file (the record number 50 in your log):
2004-02-16 01:00:08 11.11.111.111 - 111.11.111.11 80 GET /email/images/image.jpg - 200 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+.NET+CLR+1.0.3705)

Setup ('D:\Inetpub\WWWroot\sitefolder\www\cgi-bin/awstats.model.conf' file, web server or permissions) may be wrong.
See AWStats documentation in 'docs' directory for informations on how to setup awstats.


What am I doing wrong?
Any help is greatly appreciated.

 

 

 

 

Top