Tuesday, November 13, 2012

IIS logs

Some people tried to convince me that by default IIS does not log response time. IIS supports 3 types of logging formats:
  • IIS
  • NCSA
  • W3C
  • Custom
And by default W3C is used. W3C is the only one not including Custom, that allowed you to specify fields that are logged. By default it's configuration looks like below:

The filed that is responsible for logging a response time is time-taken, and by default it is turned on.
And here is one more query that I found useful, I tend to run it with GET, POST, and not like GET or POST, to compare what type of requests are hitting my site.
logparser "SELECT count(cs-uri-stem) FROM u_ex121103.log where cs-method = 'GET'"

No comments: