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
- Application logging (File system)
- Application logging (Blob)
- Web server logging
- Detailed error message
- 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
- Using Kudu -
- In Azure portal, click on "Advanced Tool" on the left side pane of the app service. It will open up a new page.
- In Kudu page, Select "CMD" from "Debug console" dropdown.
- 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.
- Linux/ Container apps: https://<app-name>.scm.azurewebsites.net/api/logs/docker/zip
- Windows apps: https://<app-name>.scm.azurewebsites.net/api/dump