I have had some frustrating problems getting AWStats to successfully process some IIS6 logfiles. The server is configured to use W3C Extended format, with all available fields selected:

#Fields: date time s-sitename s-computername s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs-version cs(User-Agent) cs(Cookie) cs(Referer) cs-host sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken

AWStatus’ built-in IIS format (LogFormat = 2) has far fewer fields, so the fields need to be explicitly defined in the AWStats config file. Fortunately the AWStats documentation lists all supported fields, with detailed descriptions. After a couple of attempts, I hit upon a winning solution:

LogFormat = “%time2 %other %other %other %method %url %query %other %logname %host %other %ua %other %referer %virtualname %code %other %other %bytesd %other %other”

This seems to work well and I am now getting detailed reports.

Another tip - if your log import seems to work ok but you are seeing a large number of dropped records, it could be that your log format is actually defined wrongly!