IIS Logging Fields necessary for statistics packages

I was enabling some 3rd party web server statistics software today (Smarterstats by www.smartertools.com) on a SharePoint server and it was necessary to make sure all the appropriate fields necessary for returning all information, in all reports were set. For Smarterstats (and in general this can apply to all webstatistics software), the following are necessary for ensuring complete statistics:

 

These are the necessary log fields that WX3Cex log files need to have for statistics software to process them correctly for reports:

  • date
  • time
  • c-ip
  • cs-username (if Windows authentication is used and you want to track them)
  • cs-method
  • cs-uri-stem
  • cs-uri-query (if you want to track query items for data mining)
  • sc-status
  • sc-substatus
  • sc-win32-status
  • sc-bytes ( if you would like to track bandwidth)
  • cs-bytes ( if you would like to track bandwidth)
  • cs-hosts
  • cs(User-Agent) ( if you would like to track browser or bots)
  • cs(Referrer) (if you would like to track referrer or search engine)

 

Logging is defined in IIS by enabling the following

 

 

 

Note: Logging lots of stuff is great for statistics and troubleshooting. But always remember to balance all those logs with diskspace, as a busy site can generate many large logs. When you purge older logs to free space, you’ll end up purging reporting history available to you. So, consider storing logs on a different disk than the system disk, one that can grow with you.