workaround for Microsoft IIS log file format
AWStats Log Analyzer
Brought to you by:
eldy,
manolamancha
My boss requested me to use this package but retain the use of the Microsoft IIS log file format. I hope by sharing what I did I can save someone else some work.
I made the attached changes to awstats.pl to allow for parsing in our environment. I also made the following changes to the config file:
LogFile="d:/path_to_logs/in%YY%MM%DD.log"
LogFormat = "%host %logname %time5 %other %other %other %other %other %bytesd %code %other %method %url %query"
LogSeparator=", "
Changes made to awstats.pl to allow IIS Log File format parsing
It has been already 11 years now since this ticket was originally posted. And Awstats still unable to work with native Microsoft IIS format logs! Please correct me if I am wrong.
Unfortunately I cannot use W3C format of logs as the Unicode query strings are all displayed with many pus signs instead of the URL decoded Russian characters. I am using IIS 8 server, probably there is a bug. That's why I switched over to native Microsoft IIS format logs that are comma separated and have a date and time format not supported by Awstats unfortunately.
Last edit: Alexander Firsov 2019-08-05
I have just added the patch.... 11 years after :-)
IIS is not well supported by awstats because there is so many troubles with this web server. Apache or nginx is most recommended than IIS.