Iis – When does IIS log a request

iisloggingPROXY

This sounds silly, but when do they log requests? I have a web application, and about 500 HTTP proxies that will load up that application. But problem is sometimes (and this morning a lot), the proxy (using php sockets) believes it connected and the response that came back was blank.

BUT IIS has no log of this request.

When does IIS log a request? Could it be rejecting the connection, and not even processing the request?

Best Answer

IIS logs requests after they have completed. W3WP.exe logs to memory after the response has been sent to the client. Then, at regular intervals (usually less than 10 seconds) W3Wp.exe writes to the IIS log file specified in the Website configuration. You may have to wait several seconds before requests are visible in the IIS log file. I believe that HTTP.sys is written to in realtime. If you don't see your requests in the IIS log file, check that you are indeed visiting the website you think you are. You can also check the most recent \%systemroot%\System32\LogFiles\HTTPERR log file for your request... if IIS can't handle your request, HTTP.sys will log why IIS could not accept the request. Hope this helps. -Chris

Related Topic