Redaguoti

Bendrinti naudojant


Azure App Service monitoring data reference

This article contains all the monitoring reference information for this service.

See Monitor Azure App Service for details on the data you can collect for Azure App Service and how to use it.

Metrics

This section lists all the automatically collected platform metrics for this service. These metrics are also part of the global list of all platform metrics supported in Azure Monitor.

For information on metric retention, see Azure Monitor Metrics overview.

Supported metrics for Microsoft.Web

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.

Metric dimensions

For information about what metric dimensions are, see Multi-dimensional metrics.

This service has the following dimensions associated with its metrics.

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

Resource logs

This section lists the types of resource logs you can collect for this service. The section pulls from the list of all resource logs category types supported in Azure Monitor.

Supported resource logs for Microsoft.Web

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 1 Java SE & Tomcat Blessed Images 1 Application logs
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

1 For Java SE apps, add "$WEBSITE_AZMON_PREVIEW_ENABLED" to the app settings and set it to 1 or to true.

Azure Monitor Logs tables

This section lists the Azure Monitor Logs tables relevant to this service, which are available for query by Log Analytics using Kusto queries. The tables contain resource log data and possibly more depending on what is collected and routed to them.

App Services

Microsoft.Web/sites

Activity log

The linked table lists the operations that can be recorded in the activity log for this service. These operations are a subset of all the possible resource provider operations in the activity log.

For more information on the schema of activity log entries, see Activity Log schema.

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