How to view Azure App Service Event Logs?

How to view Azure App Service Event Logs?

Posted by Bernard Lim on July 2, 2022

Background

In a PAAS model, it is simple to deploy and get an app running, but what is actually more important is familiarity with the administrative tools / UI they offer, especially when things go wrong when in Production!

We recently had an issue where an Azure App Service hosted app suddenly was not able to load - HTTP 500.30 error. HTTP 500.30 error

One of the first steps was obviously looking into the Event Log Viewer, but in an App Service, where can we find them?

Solution #1 - Portal

  1. In the Azure App Service page, click on Diagnose and solve problems tab

  2. In the Diagnose and solve problems tab, click on Diagnostic Tools option Diagnostic Tools

  3. In the Diagnostic Tools tab, click on Application Event Logs and you should be able to see the list of events. Event Logs

Solution #2 - Kudu

  1. In the Azure App Service page, click on Advanced Tools and then Go in the tab Advanced Tools

  2. In the Kudu page, click on Tools in the menu bar, followed by Diagnostic dump Kudu

  3. It should auto or prompt for a download of a dump-xx zip file

    Zip

  4. Inside of this zip file, there is an eventlog.xml which is the App Service events logs. Event Log