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/storage-mover/log-monitoring.md
+18-41Lines changed: 18 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,64 +79,41 @@ Log entries are created only if there are requests made against the service endp
79
79
80
80
### Sample Kusto queries
81
81
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).
83
83
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).
85
85
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.
92
87
93
88
```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]"
98
91
```
99
92
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.
101
94
102
95
```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
106
99
| top 10 by count_ desc
107
100
```
108
101
109
-
- To list the top 10 operations with the longest end-to-end latency over the last three days.
0 commit comments