You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/application-gateway/application-gateway-diagnostics.md
+44-3Lines changed: 44 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ services: application-gateway
7
7
author: mbender-ms
8
8
ms.service: azure-application-gateway
9
9
ms.topic: concept-article
10
-
ms.date: 06/16/2025
10
+
ms.date: 01/05/2026
11
11
ms.author: mbender
12
12
ms.custom:
13
13
- ai-gen-docs-bap
@@ -35,6 +35,47 @@ You can use different types of logs in Azure to manage and troubleshoot applicat
35
35
> [!NOTE]
36
36
> Logs are available only for resources deployed in the Azure Resource Manager deployment model. You can't use logs for resources in the classic deployment model. For a better understanding of the two models, see the [Understanding Resource Manager deployment and classic deployment](../azure-resource-manager/management/deployment-models.md) article.
37
37
38
+
## Storage locations for diagnostic logs
39
+
Azure Monitor provides multiple options for storing resource logs depending on your analysis, retention, and integration requirements. When configuring diagnostic settings, you can choose one or more destinations for log collection.
40
+
41
+
**Log Analytics workspace (recommended)**
42
+
A Log Analytics workspace is the recommended destination for collecting and analyzing Application Gateway resource logs. It enables:
43
+
44
+
- Use of predefined queries and visualizations
45
+
- Creation of alerts based on specific log conditions
46
+
- Integration with Azure Monitor features and insights
47
+
In Log Analytics, the table used for storing diagnostic logs depends on the collection type configured in the diagnostic setting.
48
+
49
+
**Collection types in Log Analytics**
50
+
51
+
**Azure Diagnostics (legacy):** When you select Azure Diagnostics, all logs are written to the shared AzureDiagnostics table.Because this table is shared across many resource types, each service writes its own custom fields. When the number of custom fields exceeds 500, additional fields are stored under the AdditionalFields dynamic property as key/value pairs. This can lead to reduced discoverability and more complex queries.
52
+
53
+
**Resource-specific (recommended):** When you select Resource-specific, logs are written into dedicated tables for each category.
54
+
Resource-specific mode provides:
55
+
56
+
- Simplified querying with predictable schemas
57
+
- Improved discoverability of fields and table structures
58
+
- Better performance due to lower ingestion latency and faster query execution
59
+
- Granular RBAC by assigning access at the table level
60
+
61
+
For Application Gateway, resource-specific mode creates the following tables:
**Selecting the collection type in Log analytics**
68
+
69
+
Azure services are transitioning to resource-specific mode. As part of this migration, a toggle is available in the diagnostic settings to choose either:
70
+
71
+
- Resource-specific (default)
72
+
- Azure Diagnostics
73
+
74
+
The toggle determines whether logs for the selected categories are routed to dedicated tables or to the AzureDiagnostics table. When switching to resource-specific mode, only newly selected categories use the dedicated tables; existing streams continue unchanged until reconfigured.
75
+
76
+
Selecting resource-specific mode provides enhanced flexibility through workspace transformations, allowing you to preprocess data before ingestion.For guidance on configuring workspace transformations, see: [Tutorial: Add a workspace transformation to Azure Monitor Logs by using the Azure portal](/azure/azure-monitor/logs/tutorial-workspace-transformations-portal.md)
77
+
78
+
38
79
## Examples of optimizing access logs using Workspace Transformations
39
80
40
81
**Example 1: Selective Projection of Columns**: Imagine you have application gateway access logs with 20 columns, but you're interested in analyzing data from only six specific columns. By using workspace transformation, you can project these six columns into your workspace, effectively excluding the other 14 columns. Even though the original data from those excluded columns won't be stored, empty placeholders for them still appear in the Logs blade. This approach optimizes storage and ensures that only relevant data is retained for analysis.
@@ -58,7 +99,7 @@ Other storage locations:
58
99
-**Azure Event Hubs**: Event hubs are a great option for integrating with other security information and event management (SIEM) tools to get alerts on your resources.
59
100
-**Azure Monitor partner integrations**.
60
101
61
-
Learn more about the Azure Monitor's [diagnostic settings destinations](/azure/azure-monitor/essentials/diagnostic-settings?WT.mc_id=Portal-Microsoft_Azure_Monitoring&tabs=portal#destinations) .
102
+
Learn more about the Azure Monitor's [diagnostic settings destinations](/azure/azure-monitor/essentials/diagnostic-settings.md) .
62
103
63
104
## Enable logging through PowerShell
64
105
@@ -116,4 +157,4 @@ You can also connect to your storage account and retrieve the JSON log entries f
116
157
117
158
- Visualize counter and event logs by using [Azure Monitor logs](/previous-versions/azure/azure-monitor/insights/azure-networking-analytics).
118
159
- [Visualize your Azure activity log with Power BI](https://powerbi.microsoft.com/blog/monitor-azure-audit-logs-with-power-bi/) blog post.
119
-
- [View and analyze Azure activity logs in Power BI and more](https://azure.microsoft.com/blog/analyze-azure-audit-logs-in-powerbi-more/) blog post.
160
+
- [View and analyze Azure activity logs in Power BI and more](https://azure.microsoft.com/blog/analyze-azure-audit-logs-in-powerbi-more/) blog post.
0 commit comments