Azure app service log integration with log analytics?

ScottM 311 Reputation points

Looking to connect two log data sources from my azure app service with azure log analytics.

  1. event log type data (i.e logger.log(exception)
  2. w3c log type data

Are there any docs for connecting these logs to log analytics?

Azure App Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,324 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 11,256 Reputation points Microsoft Employee

    Thanks for asking question! With the new Azure Monitor integration, you can create Diagnostic Settings (preview) to send logs to Storage Accounts, Event Hubs and Log Analytics.

    To create a Diagnostic setting Go to Azure portal > Select App Service > under Monitoring, select Diagnostic settings > Add diagnostic setting> Diagnostic-Settings-Page will open > create the Diagnostic setting by providing a name for the Diagnostic setting> Select your desired destination(s) for the logs> Log Analytics Workspace: Analyze the logs with other monitoring data and leverage Azure Monitor features such as log queries and log alerts> Select the desired log categories to export > Select Save at the top this will trigger App Service to begin sending your logs to the chosen destinations.

    There are six log categories in addition to your metrics. The table below lists the log types with its description and availability per OS.
    You may use AppServiceHTTPLogs which Access logs from the web server logs.


    You may refer to below doc links for more details:

    No comments