| title | Azure App Service monitoring data reference |
|---|---|
| description | This article contains important reference material you need when you monitor Azure App Service. |
| ms.date | 03/07/2024 |
| ms.custom | horz-monitor |
| ms.topic | reference |
| author | msangapu-msft |
| ms.author | msangapu |
| ms.service | azure-app-service |
[!INCLUDE horz-monitor-ref-intro]
See Monitor Azure App Service for details on the data you can collect for Azure App Service and how to use it.
[!INCLUDE horz-monitor-ref-metrics-intro]
The following tables list the automatically collected platform metrics for App Service.
| Metric Type | Resource Provider / Type Namespace and link to individual metrics |
|---|---|
| Web apps | Microsoft.Web/sites |
| App Service Plans | Microsoft.Web/serverfarms |
| Staging slots | Microsoft.Web/sites/slots |
| App Service Environment | Microsoft.Web/hostingEnvironments |
| App Service Environment Front-end | Microsoft.Web/hostingEnvironments/multiRolePools |
| App Service Environment Worker Pools | Microsoft.Web/hostingEnvironments/workerPools |
Note
Azure App Service, Functions, and Logic Apps share the Microsoft.Web/sites namespace dating back to when they were a single service. Refer to the Metric column in the Microsoft.Web/sites table to see which metrics apply to which services. The Metrics interface in the Azure portal for each service shows only the metrics that apply to that service.
Note
App Service Plan metrics are available only for plans in Basic, Standard, and Premium tiers.
[!INCLUDE horz-monitor-ref-metrics-dimensions-intro] [!INCLUDE horz-monitor-ref-metrics-dimensions]
Some metrics in the following namespaces have the listed dimensions:
Microsoft.Web/sites
- Instance
- workflowName
- status
- accountName
Microsoft.Web/serverFarms,
Microsoft.Web/sites/slots,
Microsoft.Web/hostingEnvironments,
Microsoft.Web/hostingenvironments/multirolepools,
Microsoft.Web/hostingenvironments/workerpools
- Instance
[!INCLUDE horz-monitor-ref-resource-logs]
The following table lists more information about resource logs you can collect for App Service.
| Log type | Windows | Windows Container | Linux | Linux Container | Description |
|---|---|---|---|---|---|
| AppServiceConsoleLogs | Java SE & Tomcat | Yes | Yes | Yes | Standard output and standard error |
| AppServiceHTTPLogs | Yes | Yes | Yes | Yes | Web server logs |
| AppServiceEnvironmentPlatformLogs | Yes | N/A | Yes | Yes | App Service Environment: scaling, configuration changes, and status logs |
| AppServiceAuditLogs | Yes | Yes | Yes | Yes | Login activity via FTP and Kudu |
| AppServiceFileAuditLogs | Yes | Yes | TBA | TBA | File changes made to the site content; only available for Premium tier and above |
| AppServiceAppLogs | ASP.NET | ASP.NET | Java SE & Tomcat Images | Java SE & Tomcat Images | Java and Tomcat are supported in their default configuration. Additional code and/or configuration might be required for some logging frameworks. |
| AppServiceIPSecAuditLogs | Yes | Yes | Yes | Yes | Requests from IP Rules |
| AppServicePlatformLogs | TBA | Yes | Yes | Yes | Container operation logs |
| AppServiceAntivirusScanAuditLogs | Yes | Yes | Yes | Yes | Anti-virus scan logs using Microsoft Defender for Cloud; only available for Premium tier |
[!INCLUDE horz-monitor-ref-logs-tables]
Microsoft.Web/sites
- AzureActivity
- LogicAppWorkflowRuntime
- AppServiceAuthenticationLogs
- AppServiceServerlessSecurityPluginData
- AzureMetrics
- AppServiceAppLogs
- AppServiceAuditLogs
- AppServiceConsoleLogs
- AppServiceFileAuditLogs
- AppServiceHTTPLogs
- FunctionAppLogs
- AppServicePlatformLogs
- AppServiceIPSecAuditLogs
[!INCLUDE horz-monitor-ref-activity-log]
The following table lists common activity log operations related to App Service. This list isn't exhaustive. For all Microsoft.Web resource provider operations, see Microsoft.Web resource provider operations.
| Operation | Description |
|---|---|
| Create or Update Web App | App was created or updated |
| Delete Web App | App was deleted |
| Create Web App Backup | Backup of app |
| Get Web App Publishing Profile | Download of publishing profile |
| Publish Web App | App deployed |
| Restart Web App | App restarted |
| Start Web App | App started |
| Stop Web App | App stopped |
| Swap Web App Slots | Slots were swapped |
| Get Web App Slots Differences | Slot differences |
| Apply Web App Configuration | Applied configuration changes |
| Reset Web App Configuration | Configuration changes reset |
| Approve Private Endpoint Connections | Approved private endpoint connections |
| Network Trace Web Apps | Started network trace |
| Newpassword Web Apps | New password created |
| Get Zipped Container Logs for Web App | Get container logs |
| Restore Web App From Backup Blob | App restored from backup |
- See Monitor App Service for a description of monitoring App Service.
- See Monitor Azure resources with Azure Monitor for details on monitoring Azure resources.