How To Generate Logs In Azure App Service For Orchestrator

How to generate logs in Azure app service for Orchestrator?

Logs can be generated in Azure App service in Orchestrator, by enabling App service logs in Azure App service.

  • This log can be generated at application or web server level. Also, we can enable detailed error message and failed request tracing with this.
  • To enable this log, go to azure portal -> open the app service -> click on App Service log on the left side pane. Various options will be displayed such as
  1. Application logging (File system)
  2. Application logging (Blob)
  3. Web server logging
  4. Detailed error message
  5. Failed request tracing
  • Enable Application logging
  • Save the logs to the filesystem. This setting will only stay enabled for 12 hours
  • Also save the logs to Azure Blob Storage, even if the logs to the file system are saved
  • Additionally, a verbosity level can be specified for the application logging to catch. This allows to filter the logging information captured to Error, Warning, Information or Verbose.
  • Enable Web server logging
  • The logs can be saved to either the filesystem or to Azure Blob Storage
  • If saved to the filesystem
    • Optionally enter a maximum size for the log files (the Quota)
    • Optionally enter a number of days that web server logs should be retained. By default, web server logs are retained indefinitely.
  • Enable Detailed Error messages : These are saved to the filesystem by default
  • Enable Failed request tracing : These are also saved to the filesystem by default
If file system is selected to store the logs, the filesystem is accessible through FTP, PowerShell, Azure CLI, Kudu or through cloud explorer in visual studio.
  • Using Kudu -
  1. In Azure portal, click on "Advanced Tool" on the left side pane of the app service. It will open up a new page.
  2. In Kudu page, Select "CMD" from "Debug console" dropdown.
  3. Click on log files. It would give the below logs
  • Application – Application trace logs
  • DetailedErrors – detailed error logs
  • http – The webserver logs
  • W3SVC#### – Failed request trace logs
  • eventlog.xml – This is not really a log type that you enable, but it is the accumulation of all of the events that occur, just like the Windows Event Log.
For logs stored in the App Service file system, the easiest way is to download the ZIP file in the browser at:
  • Linux/ Container apps: https://<app-name>
  • Windows apps: https://<app-name>
If the Azure Storage blobs option is configured for a log type, explore it in Azure portal itself or download any Microsoft client tool like Azure Storage Explorer or VS Cloud Explorer.