Enable advanced logging in Azure environments


Collect IIS Log Files

To collect IIS log files:

  1. In the Azure portal, navigate to the Web App that you want to collect the IIS log files for.
  2. Navigate to App Service Logs and set the Web server logging setting to the File System value. Specify the Quota and Retention Period fields:
  3. Save the changes.
  4. Perform the actions that trigger the required requests.
  5. For the Web App, open the Advanced Tools and click Go.
  6. In the Menu, click Debug Console and then click CMD:
  7. Navigate to the LogFiles folder and download the http folder:

Collect Failed Request Tracing Log Files

To collect Failed Request Tracing log files:

  1. In the Azure portal, navigate to the Web App that you want to collect the Failed Request Tracing log files for.
  2. Navigate to the App Service Logs and set the Failed request tracing setting to On:
  3. Save the changes.
  4. Perform the actions that trigger the required requests.
  5. For the Web App, open the Advanced Tools and click  Go.
  6. In the Menu, click Debug Console and then click CMD:
  7. Navigate to the LogFiles folder and download the folder that is named as shown at the following image:

Note

The log data in both cases can also be accessed using FTP as described in the following article: Access logs and diagnostics data in Sitecore XP on Azure Web Apps.