Skip to content

Commit ee2ca9b

Browse files
Merge pull request #311293 from khdownie/patch-8
Add Log Analytics guidance to Azure Files monitoring article
2 parents 596ba02 + 64cc2a4 commit ee2ca9b

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

articles/storage/files/storage-files-monitoring.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Monitor Azure Files using Azure Monitor
33
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
55
ms.custom: horz-monitor
66
ms.topic: concept-article
77
author: khdownie
@@ -93,6 +93,23 @@ Log entries are created only if there are requests made against the service endp
9393

9494
Requests made by the Azure Files service itself, such as log creation or deletion, aren't logged.
9595

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+
96113
[!INCLUDE [horz-monitor-kusto-queries](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-kusto-queries.md)]
97114

98115
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

Comments
 (0)