Skip to content

Commit 66e81d4

Browse files
authored
Merge pull request #278192 from cdpark/horz-monitor-appservice
Q&M: Curate 27 SOX Azure Monitor horizontals articles to reduce duplication - App Service
2 parents d5aa0e6 + e2eac1d commit 66e81d4

8 files changed

+66
-179
lines changed

.openpublishing.redirection.app-service.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1850,6 +1850,16 @@
18501850
"redirect_url": "/azure/app-service/scripts/powershell-scale-manual",
18511851
"redirect_document_id": false
18521852
},
1853+
{
1854+
"source_path_from_root": "/articles/app-service/get-resource-events.md",
1855+
"redirect_url": "/azure/app-service/monitor-app-service",
1856+
"redirect_document_id": false
1857+
},
1858+
{
1859+
"source_path_from_root": "/articles/app-service/overview-monitoring.md",
1860+
"redirect_url": "/azure/app-service/monitor-app-service",
1861+
"redirect_document_id": false
1862+
},
18531863
{
18541864
"source_path_from_root": "/articles/app-service/app-service-security-attributes.md",
18551865
"redirect_url": "/azure/app-service/security-baseline",

articles/app-service/get-resource-events.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

articles/app-service/monitor-app-service.md

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,28 @@ ms.service: app-service
1515

1616
## App Service monitoring
1717

18+
Azure App Service provides several monitoring options for monitoring resources for availability, performance, and operation. Options include Diagnostic Settings, Application Insights, log stream, metrics, quotas and alerts, and activity logs.
19+
1820
On the Azure portal page for your web app, you can select **Diagnose and solve problems** from the left navigation to access complete App Service diagnostics for your app. For more information about the App Service diagnostics tool, see [Azure App Service diagnostics overview](overview-diagnostics.md).
1921

2022
App Service provides built-in diagnostics logging to assist with debugging apps. For more information about the built-in logs, see [Stream diagnostics logs](troubleshoot-diagnostic-logs.md#stream-logs).
2123

2224
You can also use Azure Health check to monitor App Service instances. For more information, see [Monitor App Service instances using Health check](monitor-instances-health-check.md).
2325

24-
For a complete overview and summary of App Service monitoring options, see [Azure App Service monitoring overview](overview-monitoring.md).
26+
If you're using ASP.NET Core, ASP.NET, Java, Node.js, or Python, we recommend [enabling observability with Application Insights](/azure/azure-monitor/app/opentelemetry-enable). To learn more about observability experiences offered by Application Insights, see [Application Insights overview](/azure/azure-monitor/app/app-insights-overview).
27+
28+
### Monitoring scenarios
29+
30+
The following table lists monitoring methods to use for different scenarios.
31+
32+
|Scenario|Monitoring method |
33+
|----------|-----------|
34+
|I want to monitor platform metrics and logs | [Azure Monitor platform metrics](#platform-metrics)|
35+
|I want to monitor application performance and usage | (Azure Monitor) [Application Insights](#application-insights)|
36+
|I want to monitor built-in logs for testing and development|[Log stream](troubleshoot-diagnostic-logs.md#stream-logs)|
37+
|I want to monitor resource limits and configure alerts|[Quotas and alerts](web-sites-monitor.md)|
38+
|I want to monitor web app resource events|[Activity logs](#activity-log)|
39+
|I want to monitor metrics visually|[Metrics](web-sites-monitor.md#metrics-granularity-and-retention-policy)|
2540

2641
[!INCLUDE [horz-monitor-insights](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-insights.md)]
2742

@@ -36,16 +51,44 @@ For more information about the resource types for App Service, see [App Service
3651

3752
[!INCLUDE [horz-monitor-data-storage](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-data-storage.md)]
3853

54+
<a name="platform-metrics"></a>
3955
[!INCLUDE [horz-monitor-platform-metrics](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-platform-metrics.md)]
4056
For a list of available metrics for App Service, see [App Service monitoring data reference](monitor-app-service-reference.md#metrics).
4157

58+
For help understanding metrics in App Service, see [Understand metrics](web-sites-monitor.md#understand-metrics). Metrics can be viewed by aggregates on data (ie. average, max, min, etc.), instances, time range, and other filters. Metrics can monitor performance, memory, CPU, and other attributes.
59+
4260
[!INCLUDE [horz-monitor-resource-logs](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-resource-logs.md)]
4361
For the available resource log categories, their associated Log Analytics tables, and the logs schemas for App Service, see [App Service monitoring data reference](monitor-app-service-reference.md#resource-logs).
4462

4563
[!INCLUDE [audit log categories tip](./includes/azure-monitor-log-category-groups-tip.md)]
4664

65+
<a name="activity-log"></a>
4766
[!INCLUDE [horz-monitor-activity-log](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-activity-log.md)]
4867

68+
### Azure activity logs for App Service
69+
70+
Azure activity logs for App Service include details such as:
71+
72+
- What operations were taken on the resources (ex: App Service Plans)
73+
- Who started the operation
74+
- When the operation occurred
75+
- Status of the operation
76+
- Property values to help you research the operation
77+
78+
Azure activity logs can be queried using the Azure portal, PowerShell, REST API, or CLI.
79+
80+
### Ship activity logs to Event Grid
81+
82+
While activity logs are user-based, there's a new [Azure Event Grid](../event-grid/index.yml) integration with App Service (preview) that logs both user actions and automated events. With Event Grid, you can configure a handler to react to the said events. For example, use Event Grid to instantly trigger a serverless function to run image analysis each time a new photo is added to a blob storage container.
83+
84+
Alternatively, you can use Event Grid with Logic Apps to process data anywhere, without writing code. Event Grid connects data sources and event handlers.
85+
86+
To view the properties and schema for App Service events, see [Azure App Service as an Event Grid source](../event-grid/event-schema-app-service.md).
87+
88+
## Log stream (via App Service Logs)
89+
90+
Azure provides built-in diagnostics to assist during testing and development to debug an App Service app. [Log stream](troubleshoot-diagnostic-logs.md#stream-logs) can be used to get quick access to output and errors written by your application, and logs from the web server. These are standard output/error logs in addition to web server logs.
91+
4992
[!INCLUDE [horz-monitor-analyze-data](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-analyze-data.md)]
5093

5194
[!INCLUDE [horz-monitor-external-tools](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-external-tools.md)]
@@ -85,6 +128,10 @@ See [Azure Monitor queries for App Service](https://github.com/microsoft/AzureMo
85128

86129
[!INCLUDE [horz-monitor-insights-alerts](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-insights-alerts.md)]
87130

131+
### Quotas and alerts
132+
133+
Apps that are hosted in App Service are subject to certain limits on the resources they can use. [The limits](web-sites-monitor.md#understand-quotas) are defined by the App Service plan that's associated with the app. Metrics for an app or an App Service plan can be hooked up to alerts.
134+
88135
### App Service alert rules
89136

90137
The following table lists common and recommended alert rules for App Service.

articles/app-service/overview-monitoring.md

Lines changed: 0 additions & 58 deletions
This file was deleted.

articles/app-service/toc.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,12 @@
9494
href: /azure/templates/microsoft.web/allversions
9595
- name: Logs and monitoring
9696
items:
97-
- name: Monitor
97+
- name: Monitor App Service
9898
href: monitor-app-service.md
9999
- name: Monitoring data reference
100100
href: monitor-app-service-reference.md
101101
- name: Azure Monitor tutorial
102102
href: tutorial-troubleshoot-monitor.md
103-
- name: Monitoring options
104-
href: overview-monitoring.md
105103
- name: Stream diagnostic logs
106104
href: troubleshoot-diagnostic-logs.md
107105
- name: Open SSH session to a web app in a container

articles/app-service/troubleshoot-diagnostic-logs.md

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -197,27 +197,7 @@ With the new [Azure Monitor integration](https://aka.ms/appsvcblog-azmon), you c
197197
198198
### Supported log types
199199
200-
The following table shows the supported log types and descriptions:
201-
202-
| Log Name| Log type | Windows | Windows Container | Linux | Linux Container | Description |
203-
|-|-|-|-|-|-|-|
204-
| App Service Console Logs | AppServiceConsoleLogs | Java SE & Tomcat | Yes | Yes | Yes | Standard output and standard error <sup>3</sup> |
205-
| HTTP logs | AppServiceHTTPLogs | Yes | Yes | Yes | Yes | Web server logs |
206-
| App Service Environment Platform Logs | AppServiceEnvironmentPlatformLogs | Yes | N/A | Yes | Yes | App Service Environment: scaling, configuration changes, and status logs|
207-
| Access Audit Logs | AppServiceAuditLogs | Yes | Yes | Yes | Yes | Login activity via FTP and Kudu |
208-
| Site Content Change Audit Logs | AppServiceFileAuditLogs | Yes | Yes | TBA | TBA | File changes made to the site content; **only available for Premium tier and above** |
209-
| App Service Application Logs | AppServiceAppLogs | ASP.NET, .NET Core, & Tomcat <sup>1</sup> | ASP.NET & Tomcat <sup>1</sup> | .NET Core, Java, SE & Tomcat Blessed Images <sup>2</sup> | Java SE & Tomcat Blessed Images <sup>2</sup> | Application logs <sup>3</sup> |
210-
| IPSecurity Audit logs | AppServiceIPSecAuditLogs | Yes | Yes | Yes | Yes | Requests from IP Rules |
211-
| App Service Platform logs | AppServicePlatformLogs | TBA | Yes | Yes | Yes | Container operation logs |
212-
| Report Antivirus Audit Logs | AppServiceAntivirusScanAuditLogs <sup>4</sup> | Yes | Yes | Yes | Yes | [Anti-virus scan logs](https://azure.github.io/AppService/2020/12/09/AzMon-AppServiceAntivirusScanAuditLogs.html) using Microsoft Defender for Cloud; **only available for Premium tier** |
213-
214-
<sup>1</sup> For Tomcat apps, add `TOMCAT_USE_STARTUP_BAT` to the app settings and set it to `false` or `0`. Need to be on the *latest* Tomcat version and use *java.util.logging*.
215-
216-
<sup>2</sup> For Java SE apps, add `WEBSITE_AZMON_PREVIEW_ENABLED` to the app settings and set it to `true` or to `1`.
217-
218-
<sup>3</sup> Current logging limit is set to 100 logs per minute.
219-
220-
<sup>4</sup> AppServiceAntivirusScanAuditLogs log type is still currently in Preview
200+
For a list of supported log types and their descriptions, see [Supported resource logs for Microsoft.Web](monitor-app-service-reference.md#supported-resource-logs-for-microsoftweb).
221201
222202
## Networking considerations
223203

articles/app-service/tutorial-troubleshoot-monitor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ az monitor log-analytics workspace create --resource-group myResourceGroup --wor
6969
7070
### Create a diagnostic setting
7171

72-
Diagnostic settings can be used to collect metrics for certain Azure services into Azure Monitor Logs for analysis with other monitoring data using log queries. For this tutorial, you enable the web server and standard output/error logs. See [supported log types](./troubleshoot-diagnostic-logs.md#supported-log-types) for a complete list of log types and descriptions.
72+
Diagnostic settings can be used to collect metrics for certain Azure services into Azure Monitor Logs for analysis with other monitoring data using log queries. For this tutorial, you enable the web server and standard output/error logs. See [supported log types](monitor-app-service-reference.md#resource-logs) for a complete list of log types and descriptions.
7373

7474
You run the following commands to create diagnostic settings for AppServiceConsoleLogs (standard output/error) and AppServiceHTTPLogs (web server logs). Replace _\<app-name>_ and _\<workspace-name>_ with your values.
7575

0 commit comments

Comments
 (0)