How to enable failed request tracing in iis7 ?

One of the great features of IIS 7.0 is troubleshooting and superior monitoring the fails requests,this  allowing you to configure crawl rules on the server that will create detailed log files for troubleshooting conditions custom error you define. For example, you can capture the details of authentication failures by creating crawl rules that create log files of HTTP 401 errors.Here I am explaining that How to enable failed request tracing in iis7 ?


  1. Goto RUN ->inetmgr.
  2. From left lide [connection] window select the server connection, site, application, or directory for which you want to configure failed request tracing.
  3. From the right side [Actions pane], click Failed Request Tracing…
  4. This will take you to a dialog box “Edit Web Site Failed Request Tracing Settings”.

Configure the following options in “Edit Web Site Failed Request Tracing Settings”.

  • Tick the Enable check box to enable tracing.
  • Leave the default value or type a new directory where you want to store failed request log files in the Directory box.
  • Type the number of failed request trace files you want to store in the Maximum number of trace files box.
  • Click OK.


Also you can do the same operation through command prompt using appcmd.exe

appcmd.exe set config -section:system.applicationHost/sites /[name='Default Web Site'].traceFailedRequestsLogging.enabled:"True" /commit:apphost

appcmd.exe set config -section:system.applicationHost/sites /[name='Default Web Site']"%SystemDrive%\inetpub\logs\FailedReqLogFiles" /commit:apphost

appcmd.exe set config -section:system.applicationHost/sites /[name='Default Web Site'].traceFailedRequestsLogging.maxLogFiles:"50" /commit:apphost

Leave a Reply

Your email address will not be published. Required fields are marked *