Azure App Service Logging vs Application Insights Integration

Cosmin Stirbu 171 Reputation points
2021-08-02T14:48:57.363+00:00

Hello,

I'm trying to better understand when should we enable diagnostics logging for apps in Azure App Service (Monitoring ->App Service logs) and when it's enough to just configure Application Insights (Settings -> Application Insights).

This question was triggered by the following recommendations made by https://www.checkov.io/:

Thank you,
Cosmin

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,645 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,173 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jaliya Udagedara 2,836 Reputation points MVP Volunteer Moderator
    2021-08-02T15:53:09.807+00:00

    Azure provides built-in diagnostics mechanism (App Service Logs) to assist with debugging an App Service app. There basically you will have to go through the logs to see what is happening.

    Application Insights as the name suggests (Insights) provides a lot more features on top of just being able to view logs. Most importantly you can query the logs. Have a look at App Insights Overview.

    To answer your question, I use App Service Logs when an App Service is failing to start, etc. For everything else, I use Application Insights.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.