Azure app service log integration with log analytics?

ScottM 331 Reputation points
2020-06-01T14:23:31.947+00:00

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 Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,866 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 18,286 Reputation points
    2020-06-01T19:31:28.807+00:00

    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.

    8869-2020-06-02-00-27-54-enable-diagnostics-logging-azu.png

    You may refer to below doc links for more details:

    https://learn.microsoft.com/en-gb/azure/azure-monitor/platform/diagnostic-settings

    https://learn.microsoft.com/en-us/Azure/app-service/troubleshoot-diagnostic-logs#send-logs-to-azure-monitor-preview

    1 person found this answer helpful.
    0 comments No comments