Skip to content

Commit 638cdbf

Browse files
committed
Editorial updates
1 parent 4e6fd27 commit 638cdbf

File tree

1 file changed

+18
-41
lines changed

1 file changed

+18
-41
lines changed

articles/storage-mover/log-monitoring.md

Lines changed: 18 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -79,64 +79,41 @@ Log entries are created only if there are requests made against the service endp
7979

8080
### Sample Kusto queries
8181

82-
If you send logs to Log Analytics, you can access those logs by using Azure Monitor log queries. For more information, see [Log Analytics tutorial](../azure-monitor/logs/log-analytics-tutorial.md).
82+
After you send logs to Log Analytics, you can access those logs by using Azure Monitor log queries. For more information on these queries, refer to the [Log Analytics tutorial](../azure-monitor/logs/log-analytics-tutorial.md).
8383

84-
Here are some queries that you can enter in the **Log search** bar to help you monitor your Blob storage. These queries work with the [new language](../azure-monitor/logs/log-query-overview.md).
84+
The sample queries provided below can be entered in the **Log search** bar to help you monitor your migration. These queries work with the [new language](../azure-monitor/logs/log-query-overview.md).
8585

86-
> [!IMPORTANT]
87-
> When you select **Logs** from the storage account resource group menu, Log Analytics is opened with the query scope set to the current resource group. This means that log queries will only include data from that resource group. If you want to run a query that includes data from other resources or data from other Azure services, select **Logs** from the **Azure Monitor** menu. See [Log query scope and time range in Azure Monitor Log Analytics](../azure-monitor/logs/scope.md) for details.
88-
89-
Use these queries to help you monitor your Azure Storage accounts:
90-
91-
- To list the 10 most common errors over the last three days.
86+
- To list all the files which failed to copy from a specific job run within the last 30 days.
9287

9388
```kusto
94-
StorageBlobLogs
95-
| where TimeGenerated > ago(3d) and StatusText !contains "Success"
96-
| summarize count() by StatusText
97-
| top 10 by count_ desc
89+
StorageMoverCopyLogsFailed
90+
| where TimeGenerated > ago(30d) and JobRunName == "[job run ID]"
9891
```
9992
100-
- To list the top 10 operations that caused the most errors over the last three days.
93+
- To list the 10 most common copy log error codes over the last seven days.
10194
10295
```kusto
103-
StorageBlobLogs
104-
| where TimeGenerated > ago(3d) and StatusText !contains "Success"
105-
| summarize count() by OperationName
96+
StorageMoverCopyLogsFailed
97+
| where TimeGenerated > ago(7d)
98+
| summarize count() by StatusCode
10699
| top 10 by count_ desc
107100
```
108101
109-
- To list the top 10 operations with the longest end-to-end latency over the last three days.
110-
111-
```kusto
112-
StorageBlobLogs
113-
| where TimeGenerated > ago(3d)
114-
| top 10 by DurationMs desc
115-
| project TimeGenerated, OperationName, DurationMs, ServerLatencyMs, ClientLatencyMs = DurationMs - ServerLatencyMs
116-
```
117-
118-
- To list all operations that caused server-side throttling errors over the last three days.
119-
120-
```kusto
121-
StorageBlobLogs
122-
| where TimeGenerated > ago(3d) and StatusText contains "ServerBusy"
123-
| project TimeGenerated, OperationName, StatusCode, StatusText
124-
```
125-
126-
- To list all requests with anonymous access over the last three days.
102+
- To list the 10 most recent job failure error codes over the last three days.
127103
128104
```kusto
129-
StorageBlobLogs
130-
| where TimeGenerated > ago(3d) and AuthenticationType == "Anonymous"
131-
| project TimeGenerated, OperationName, AuthenticationType, Uri
105+
StorageMoverJobRunLogs
106+
| where TimeGenerated > ago(3d) and StatusCode != "AZSM0000"
107+
| summarize count() by StatusCode
108+
| top 10 by count_ desc
132109
```
133110
134-
- To create a pie chart of operations used over the last three days.
111+
- To create a pie chart of failed copy operations grouped by job run over the last 30 days.
135112
136113
```kusto
137-
StorageBlobLogs
138-
| where TimeGenerated > ago(3d)
139-
| summarize count() by OperationName
114+
StorageMoverCopyLogsFailed
115+
| where TimeGenerated > ago(30d)
116+
| summarize count() by JobRunName
140117
| sort by count_ desc
141118
| render piechart
142119
```

0 commit comments

Comments
 (0)