Skip to content

Commit 114e28e

Browse files
committed
Acrolinx & docmentor auto-markdown fixes
1 parent 15d4f23 commit 114e28e

File tree

7 files changed

+22
-33
lines changed

7 files changed

+22
-33
lines changed

articles/application-gateway/application-gateway-diagnostics.md

Lines changed: 22 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: mbender-ms
77
ms.service: azure-application-gateway
88
ms.topic: concept-article
99
ms.date: 05/07/2025
10-
ms.author: mbender
10+
ms.author: mbender
1111
---
1212

1313
# Diagnostic logs for Application Gateway
@@ -30,20 +30,20 @@ You can use different types of logs in Azure to manage and troubleshoot applicat
3030
3131
## Examples of optimizing access logs using Workspace Transformations
3232

33-
**Example 1: Selective Projection of Columns**: Imagine you have application gateway access logs with 20 columns, but youre interested in analyzing data from only 6 specific columns. By using workspace transformation, you can project these 6 columns into your workspace, effectively excluding the other 14 columns. Even though the original data from those excluded columns wont 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.
33+
**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.
3434

35-
> [!NOTE]
36-
> Within the Logs blade, selecting the **Try New Log Analytics** option gives greater control over the columns displayed in your user interface.
35+
> [!NOTE]
36+
> Within the Logs blade, selecting the **Try New Log Analytics** option gives greater control over the columns displayed in your user interface.
3737
3838
**Example 2: Focusing on Specific Status Codes**: When analyzing access logs, instead of processing all log entries, you can write a query to retrieve only rows with specific HTTP status codes (such as 4xx and 5xx). Since most requests ideally fall under the 2xx and 3xx categories (representing successful responses), focusing on the problematic status codes narrows down the data set. This targeted approach allows you to extract the most relevant and actionable information, making it both beneficial and cost-effective.
3939

4040
**Recommended transition strategy to move from Azure diagnostic to resource specific table:**
4141

4242
1. Assess current data retention: Determine the duration for which data is presently retained in the Azure diagnostics table (for example: assume the diagnostics table retains data for 15 days).
43-
2. Establish resource-specific retention: Implement a new Diagnostic setting with resource specific table.
44-
3. Parallel data collection: For a temporary period, collect data concurrently in both the Azure Diagnostics and the resource-specific settings.
45-
4. Confirm data accuracy: Verify that data collection is accurate and consistent in both settings.
46-
5. Remove Azure diagnostics setting: Remove the Azure Diagnostic setting to prevent duplicate data collection.
43+
1. Establish resource-specific retention: Implement a new Diagnostic setting with resource specific table.
44+
1. Parallel data collection: For a temporary period, collect data concurrently in both the Azure Diagnostics and the resource-specific settings.
45+
1. Confirm data accuracy: Verify that data collection is accurate and consistent in both settings.
46+
1. Remove Azure diagnostics setting: Remove the Azure Diagnostic setting to prevent duplicate data collection.
4747

4848
Other storage locations:
4949

@@ -59,38 +59,38 @@ Activity logging is automatically enabled for every Resource Manager resource. Y
5959

6060
1. Note your storage account's resource ID, where the log data is stored. This value is of the form: /subscriptions/\<subscriptionId\>/resourceGroups/\<resourceGroupName\>/providers/Microsoft.Storage/storageAccounts/\<storageAccountName\>. You can use any storage account in your subscription. You can use the Azure portal to find this information.
6161

62-
:::image type="content" source="media/application-gateway-diagnostics/diagnostics2-small.png" alt-text="Screenshot of storage account endpoints" lightbox="media/application-gateway-diagnostics/diagnostics2.png":::
62+
:::image type="content" source="media/application-gateway-diagnostics/storage-endpoint-resource-id-thumb.png" alt-text="Screenshot of storage account endpoints." lightbox="media/application-gateway-diagnostics/storage-endpoint-resource-id.png":::
6363

64-
2. Note your application gateway's resource ID for which logging is enabled. This value is of the form: /subscriptions/\<subscriptionId\>/resourceGroups/\<resourceGroupName\>/providers/Microsoft.Network/applicationGateways/\<applicationGatewayName\>. You can use the portal to find this information.
64+
1. Note your application gateway's resource ID for which logging is enabled. This value is of the form: /subscriptions/\<subscriptionId\>/resourceGroups/\<resourceGroupName\>/providers/Microsoft.Network/applicationGateways/\<applicationGatewayName\>. You can use the portal to find this information.
6565

66-
:::image type="content" source="media/application-gateway-diagnostics/diagnostics1-small.png" alt-text="Screenshot of app gateway properties" lightbox="media/application-gateway-diagnostics/diagnostics1.png":::
66+
:::image type="content" source="media/application-gateway-diagnostics/application-gateway-endpoint-id-thumb.png" alt-text="Screenshot of app gateway properties." lightbox="media/application-gateway-diagnostics/application-gateway-endpoint-id.png":::
6767

68-
3. Enable diagnostic logging by using the following PowerShell cmdlet:
68+
1. Enable diagnostic logging by using the following PowerShell cmdlet:
6969

7070
```powershell
71-
Set-AzDiagnosticSetting -ResourceId /subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.Network/applicationGateways/<applicationGatewayName> -StorageAccountId /subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.Storage/storageAccounts/<storageAccountName> -Enabled $true
71+
Set-AzDiagnosticSetting -ResourceId /subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.Network/applicationGateways/<applicationGatewayName> -StorageAccountId /subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.Storage/storageAccounts/<storageAccountName> -Enabled $true
7272
```
7373
7474
> [!TIP]
75-
>Activity logs do not require a separate storage account. The use of storage for access and performance logging incurs service charges.
75+
> Activity logs don't require a separate storage account. The use of storage for access and performance logging incurs service charges.
7676
7777
## Enable logging through the Azure portal
7878
7979
1. In the Azure portal, find your resource and select **Diagnostic settings**.
8080
8181
For Application Gateway, three logs are available:
8282
83-
* Access log
84-
* Performance log (available only for the v1 SKU)
85-
* Firewall log
83+
- Access log
84+
- Performance log (available only for the v1 SKU)
85+
- Firewall log
8686
8787
1. To start collecting data, select **Turn on diagnostics**.
8888
89-
![Turning on diagnostics][1]
89+
:::image type="content" source="media/application-gateway-diagnostics/turning-on-diagnostics.png" alt-text="Screenshot of turning on diagnostics.":::
9090
9191
1. The **Diagnostics settings** page provides the settings for the diagnostic logs. In this example, Log Analytics stores the logs. You can also use event hubs and a storage account to save the diagnostic logs.
9292
93-
![Starting the configuration process][2]
93+
:::image type="content" source="media/application-gateway-diagnostics/starting-configuration-process.png" alt-text="Screenshot of starting the configuration process.":::
9494
9595
1. Type a name for the settings, confirm the settings, and select **Save**.
9696
@@ -107,17 +107,6 @@ You can also connect to your storage account and retrieve the JSON log entries f
107107
108108
## Next steps
109109
110-
* Visualize counter and event logs by using [Azure Monitor logs](/previous-versions/azure/azure-monitor/insights/azure-networking-analytics).
111-
* [Visualize your Azure activity log with Power BI](https://powerbi.microsoft.com/blog/monitor-azure-audit-logs-with-power-bi/) blog post.
112-
* [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.
113-
114-
[1]: ./media/application-gateway-diagnostics/figure1.png
115-
[2]: ./media/application-gateway-diagnostics/figure2.png
116-
[3]: ./media/application-gateway-diagnostics/figure3.png
117-
[4]: ./media/application-gateway-diagnostics/figure4.png
118-
[5]: ./media/application-gateway-diagnostics/figure5.png
119-
[6]: ./media/application-gateway-diagnostics/figure6.png
120-
[7]: ./media/application-gateway-diagnostics/figure7.png
121-
[8]: ./media/application-gateway-diagnostics/figure8.png
122-
[9]: ./media/application-gateway-diagnostics/figure9.png
123-
[10]: ./media/application-gateway-diagnostics/figure10.png
110+
- Visualize counter and event logs by using [Azure Monitor logs](/previous-versions/azure/azure-monitor/insights/azure-networking-analytics).
111+
- [Visualize your Azure activity log with Power BI](https://powerbi.microsoft.com/blog/monitor-azure-audit-logs-with-power-bi/) blog post.
112+
- [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.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)