SharePoint Central Admin HTTP Error Enable Failed Request Trace Logging

Introduction

I think this is a common problem in SharePoint. A lot of SharePoint administrators face this on a routine basis. Specifically, when you get a generic error; i.e., "The page can’t display with the HTTP 500" error, but no clue why from the logs, etc. In that case, we should take advantage of the IIS feature of Failed Request Tracing. With tracing for failed requests, you can capture an XML-formatted log of a problem when it occurs, so that you do not have to reproduce the problem before you start troubleshooting. This process consists of two steps.

  • Enable logging for the Failed Request Tracing
  • Create a Tracing Rule for Failed Requests

Enable Failed Request Tracing

In order to perform this step, one should be a Server Administrator.

  1. Open IIS Manager.
  2. In Connections View, select Site (SharePoint Central Admin). You can select any site on which you want to enable the logging and in the Actions pane, under Configure, click Failed Request Tracing.



  3. In the "Edit Web Site Failed Request Tracing Settings" dialog box, select "Enable" to enable logging for this site. In the Directory text box, type the path where you want to store the log files or click the browse button (…) to find a location on the computer. The default is-

    %SystemDrive%\inetpub\logs\FailedReqLogFiles.


Now, Failed Request Tracing is enabled for the SharePoint Central Admin Site. Next, let's create the Failed Tracing Rule.

Create a Tracing Rule for Failed Requests

  1. Select the Central Admin from Connections Pane. In Features View, double-click Failed Request Tracing Rules.



  2. On the Failed Request Tracing Rules page, click "Add" in the Actions pane.



  3. In the "Specify Content to Trace" area of the Add Failed Request Tracing Rule dialog box, select AllContent (*).



    1. All content (*) when you want to track all files in a directory.
    2. ASP.NET (*.aspx) when you want to track all .aspx files in a directory.
    3. ASP (*.asp) when you want to track all .asp files in a directory.
    4. Custom
      When you want to define a failure for a custom set of content, such as “xyz.exe” or “*.jpg”. This can contain, at most, one wildcard and must be local to the directory where the failed request definition is set.

  4. Click Next.
  5. In the "Define Trace Conditions" area of the Add Failed Request Tracing Rule dialog box, check the Status Code(s) and enter the HTTP Error 500.



  6. Click Next.
  7. In the "Select Trace Providers" area of the Add Failed Request Tracing Rule dialog box, I select All.



  8. Click Finish.
  9. Now, in feature pane, you will see a new Rule.


After this, you have to browse the site, and a XML log file will be generated on the location which you have defined above.

Up Next
    Ebook Download
    View all
    Learn
    View all