Menu

#791 workaround for Microsoft IIS log file format

None
closed
nobody
None
5
2019-08-30
2008-12-09
No

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=", "

Discussion

  • Dwayne Geller

    Dwayne Geller - 2008-12-09

    Changes made to awstats.pl to allow IIS Log File format parsing

     
  • Alexander Firsov

    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
  • Laurent Destailleur (Eldy)

    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.

     
  • Laurent Destailleur (Eldy)

    • status: open --> closed
    • Group: -->
     

Log in to post a comment.