|
1 | 1 | --- |
2 | 2 | title: Monitor Azure Files using Azure Monitor |
3 | 3 | description: Learn how to monitor Azure Files and analyze metrics and logs using Azure Monitor. |
4 | | -ms.date: 05/10/2024 |
| 4 | +ms.date: 02/03/2026 |
5 | 5 | ms.custom: horz-monitor |
6 | 6 | ms.topic: concept-article |
7 | 7 | author: khdownie |
@@ -93,6 +93,23 @@ Log entries are created only if there are requests made against the service endp |
93 | 93 |
|
94 | 94 | Requests made by the Azure Files service itself, such as log creation or deletion, aren't logged. |
95 | 95 |
|
| 96 | +#### Configure Azure Files monitoring data collection |
| 97 | + |
| 98 | +Azure Files integrates with Azure Monitor, but metrics and logs aren't sent to a Log Analytics workspace by default. To query Azure Files telemetry using Kusto Query Language (KQL), you must first configure diagnostic settings on the storage account. |
| 99 | + |
| 100 | +Follow these steps to create a diagnostic setting and send Azure Files logs and metrics to an existing Log Analytics workspace. If you don't already have a Log Analytics workspace in your Azure subscription, you'll need to [create one](/azure/azure-monitor/logs/quick-create-workspace) first. |
| 101 | + |
| 102 | +1. Sign into the Azure portal and navigate to your storage account. |
| 103 | +1. From the service menu, under **Monitoring**, select **Diagnostic settings**. |
| 104 | +1. Select the **file** resource, then select **+ Add diagnostic setting**. |
| 105 | +1. Provide a name for the new diagnostic setting. |
| 106 | +1. Select the relevant Azure Files log and metrics categories. |
| 107 | +1. Under **Destination details**, select **Send to Log Analytics workspace**. |
| 108 | +1. Select a subscription and Log Analytics workspace. |
| 109 | +1. Select **Save** from the top menu. |
| 110 | + |
| 111 | +Once enabled, Azure Files logs and metrics will begin flowing into the selected workspace, and you can query them using KQL. |
| 112 | + |
96 | 113 | [!INCLUDE [horz-monitor-kusto-queries](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-kusto-queries.md)] |
97 | 114 |
|
98 | 115 | Here are some queries that you can enter in the **Log search** bar to help you monitor your Azure file shares. These queries work with the [new language](/azure/azure-monitor/logs/log-query-overview). |
|
0 commit comments