Skip to content

Commit 8db2b77

Browse files
authored
Merge pull request #96009 from bwren/am-sql-query
Fix to SQL log query
2 parents 6e07ec3 + f3bba4c commit 8db2b77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/sql-database/sql-database-sync-monitor-oms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ To create an alert that uses Azure Monitor logs, do the following things. As a p
131131

132132
2. Create a query to select the errors and warnings by sync group within the interval you selected. For example:
133133

134-
`DataSyncLog_CL | where TimeGenerated > ago(60m) | where LogLevel_s != "Success" | summarize count() by SyncGroupName_s`
134+
`DataSyncLog_CL | where LogLevel_s != "Success" | summarize AggregatedValue = count() by bin(TimeGenerated,60m),SyncGroupName_s`
135135

136136
3. After running the query, select the bell that says **Alert**.
137137

0 commit comments

Comments
 (0)