Wednesday, April 3, 2013

IIS Log and Http.sys Tips and Tricks

why can't I see IIS logs written immediately after a request?

The anwer is that the HTTP.SYS buffers the IIS logs and flushes to the disk every 60 seconds because of performance issues.

If you are running IIS 7.0 or IIS 7.5 and if you want to flush the HTTP.SYS buffer to the disk immediately, you can open a command prompt and run the following command:

netsh http flush logbuffer
Post a Comment