Viewing Azure App Service web server and application logs in real time on the Azure Portal

The ability to view application and web server logs in real time for an App Service in the Azure portal is a really sweet feature. I find it very helpful for debugging and it’s really easy to use too.

First make sure you have logging enabled

Enable logging for an Azure App Service

and then visit the Monitoring -> Log stream page as shown below (click for a larger view in a new window).

Azure App Service Log Streaming

Give it a second or two to connect and then visit a few of your App Service pages and you should see entries start to appear.

The application logs appear straight away, however the server logs can often take 30-60 seconds to appear, so not quite real time but this could be related to the fact I’m on the free tier.

Unfortunately the radio buttons at the top of the page to filter by application logs or web server logs don’t appear to be working and everything just appears together when ‘Application logs’ is selected and both forms of logging are enabled. This is no big deal and I’m sure this will be fixed soon, in the meantime you can always temporarily turn off one form of logging to display only the other while debugging.

One thought on “Viewing Azure App Service web server and application logs in real time on the Azure Portal”

Leave a Reply

Your email address will not be published. Required fields are marked *