When are incoming requests logged to file in IIS? Does it happen before or after they are processed and response is sent to the client? What happens in case if request is accepted but response isn't sent back (is the incomming request logged to file in this scenario)?
1 Answer
The request is logged after the response has been prepared (you have the ability to modify the data that will be logged, under your request).
It will be logged even during errors, even though some errors might end up in the HTTPERR-folder (by default under C:\windows\system32\LogFiles\HTTPERR), and I think that certain request might only show up there.
I had an issue where a firewall with http inspection would cut a connection that stalls for more than 2 minutes, and since the request failed with "broken pipe" sort of error, I think that only showed up in that error log with status 995.
-
Thanks you for clarification. I have now an issue with my web application that accepts every request EXCEPT one specific path and I can't see requests to that path in any logs, not even in HTTPERR which led me to question if there can be a situation where response processing went wrong and therefore requests won't show up in logs. Commented Oct 22, 2012 at 13:26
-
Actually I was looking in the wrong folder for HTTPERR and now I can see the errors :). Commented Oct 22, 2012 at 13:33