Activate Logging for Azure Web App for Containers

Why my logs not shown?

Bervianto Leo Pratama
2 min readFeb 4, 2021

I will assume you are already have deployed the applications at Azure Web App, but it show nothing at Log Stream. Here is the Log stream looks.

Log stream

Log stream menu under Monitoring section.

When you have warning about the App Service logs not activated, you come to the right place. You need to go App Service logs menu under Monitoring section.

App Service logs

Click the Application Logging menu to File System. Define the Quota (MB) and Retention Period (Days) with your needs, as my example fill about 35 MB and 5 Days, I fill low number because this is only for testing/development for the Production maybe you will need higher quota and longer retention period. After finished, you can try again into Log stream and also do any tasks that will trigger the logs.

Another Options to Get Logs

Anyway, this step only to find the logs same as Log stream, but not about to activate it.

Linux

Visit this: https://<Your-app-name>.scm.azurewebsites.net/

You will get pages like this

Kudu — Azure App Service

You can try check the logs by click Current Docker logs or if you need download the logs, click Download as zip.

More Information

If you need more information about to get logs, it will good if you try to check the Azure Documentation. Here the link: https://docs.microsoft.com/en-us/azure/app-service/troubleshoot-diagnostic-logs

--

--

Bervianto Leo Pratama

Software Engineer | AWS Community Builder | HashiCorp Ambassador | Focus on Microservices and Cloud Computing