Microsoft IIS 10.0 – Configuring Failed Request Tracing Rules

How to install Ubuntu Server 19.10

In this recipe, we will log in to IIS Server and open IIS Manager. We will open the Features View of mysite.com to add Failed Request Tracing Rules. We will check out how to edit them. We will also check out the Failed Request Tracing Rules log file directory and enable the rules.

Getting ready

In this recipe, we require an up-and-running IIS 10.0 instance. The Failed Request Tracing Rules component should be installed. You should have administrative privileges.

How to do it…

  1. Log in to Windows Server 2016 with an administrator account.
  2. Open Server Manager.

 

 

  1. Click on Tools and you will find IIS Manager. Open IIS Manager, and expand the IIS server WIN2016IIS. Expand the Sites folder, click on mysite.com, go to the Features View of mysite.com, and select Failed Request Tracing Rules, as shown here:
  1. Open the Failed Request Tracing Rules option, as shown here:
  1. You can see that we’ve selected the Actions pane. We have a list of options available. We are going to add F ailed Request Tracing Rules. Click on the Add option in the Actions pane:
  1. Select the All content (*) radio button. You have some more choices over there; ASP.NET or ASP and custom. Click on Next:
  1. Now we have defined the trace conditions, and we can select any Failed Request Tracing code. Let’s add 401.3 and click on Next:
  1. In the trace providers window, select any or all of them. Here we’re selecting all. Click on Finish, and you will have the rule created, as shown here:
  1. Once you’ve created a Failed Request Tracing Rules, you can edit it. Just follow the edit options from the Actions pane of Failed Request Tracing Rules.
  2. Let’s enable the Failed Request Tracing Rules we just created for mysite.com. Click on the Edit Site Tracing… option from the Actions pane, and you will get the Enable Failed Request Tracing Rules window for mysite.com, as shown here:
  1. Click on Enable at the top. You can see in the screenshot that we have the Directory path of the Failed Request Tracing log and maximum number of trace files as 50. Click on OK. Now your Failed Request Tracing Rule is enabled for mysite.com.
  2. Let’s check the log file directory. Go to the Actions pane of Failed Request Tracing Rules and click on View Trace Logs…. You will get the log file directory of Failed Request Tracing Rules, as shown in this figure:
  1. Currently, we don’t have any log files, but if our website has failed operations, the log file will be generated automatically.

How it works…

In this recipe, we logged in to IIS Server and opened IIS Manager. We went through the Features View of mysite.com to add Failed Request Tracing Rules. We saw how to edit the Failed Request Tracing Rules and checked the Failed Request Tracing Rules log file directory. We then enabled the Failed Request Tracing Rules.

Comments are closed.