Failed Request Tracing

  • Updated

Web pages intermittently result in status errors such as HTTP 400 or 500 but more details are needed.

Failed Request Tracing can help provide additional information for various web page errors.

The steps below describe how to set up Failed Request Tracing.

Prerequisite: Ensure the Tracing role is added to the Web Server. It is located in Role Services under Web Server, Health and Diagnostics.

Enable Tracing

  1. Launch Internet Information Services (IIS) Manager
  2. In the Connections pane, select the desired web site.
  3. Select the Failed Request Tracing Rules feature then in the Actions pane, click Open Feature.
  4. Next, click the Edit Site Tracing... link in the Actions pane.
  5. Add a checkmark to the Enable check box. Note the Directory path then click OK.

Create a Failure Defintion

  1. With the Failed Request Tracing Rules feature opened, click the Add... link in the Actions pane.
  2. When the Add Failed Request Tracing Rule wizard appears, select what you would like to trace, for example, All content (*). Click Next.
  3. When the Define Trace Conditions page appears, enter the conditions to trace, for example, status code 500. Click Next.
  4. Select the Trace Providers (the default is all providers) then click Finish.

After a period of time during which the errors recurred, go to the directory location, for example, %SystemDrive%\inetpub\logs\FailedReqLogFiles, to access the log files.

Refer to this Microsoft page for more details.