@@ -66,7 +66,8 @@ See [Create diagnostic setting to collect platform logs and metrics in Azure](/a
66
66
67
67
| Category | Description |
68
68
| :---| :---|
69
- | Audit | Read/Write operations|
69
+ | Audit | Read/Write operations|
70
+ | Indexing Logs| Monitor the indexing process form upload to indexing and Re-indexing when needed|
70
71
71
72
:::image type="content" source="./media/monitor/toc-diagnostics-save.png" alt-text="Screenshot of diagnostic settings." lightbox="./media/monitor/toc-diagnostics-save.png":::
72
73
@@ -113,6 +114,7 @@ For a list of the tables used by Azure Monitor Logs and queryable by Log Analyti
113
114
114
115
### Sample Kusto queries
115
116
117
+ #### Audit related sample queries
116
118
<!-- REQUIRED if you support logs. Please keep headings in this order -->
117
119
<!-- Add sample Log Analytics Kusto queries for your service. -->
118
120
@@ -140,6 +142,35 @@ VIAudit
140
142
| project TimeGenerated, OperationName, ErrorMessage, ErrorType, CorrelationId, _ResourceId
141
143
```
142
144
145
+ #### Indexing realted sample queries
146
+
147
+ ``` kusto
148
+ // Display Video Indexer Account logs of all failed indexing operations.
149
+ VIIndexing
150
+ // | where AccountId == "<AccountId>" // to filter on a specific accountId, uncomment this line
151
+ | where Status == "Failure"
152
+ | summarize count() by bin(TimeGenerated, 1d)
153
+ | render columnchart
154
+ ```
155
+
156
+ ``` kusto
157
+ // Video Indexer top 10 users by operations
158
+ // Render timechart of top 10 users by operations, with an optional account id for filtering.
159
+ // Trend of top 10 active Upn's
160
+ VIIndexing
161
+ // | where AccountId == "<AccountId>" // to filter on a specific accountId, uncomment this line
162
+ | where OperationName in ("IndexingStarted", "ReindexingStarted")
163
+ | summarize count() by Upn
164
+ | top 10 by count_ desc
165
+ | project Upn
166
+ | join (VIIndexing
167
+ | where TimeGenerated > ago(30d)
168
+ | where OperationName in ("IndexingStarted", "ReindexingStarted")
169
+ | summarize count() by Upn, bin(TimeGenerated,1d)) on Upn
170
+ | project TimeGenerated, Upn, count_
171
+ | render timechart
172
+ ```
173
+
143
174
## Alerts
144
175
145
176
<!-- SUGGESTED: Include useful alerts on metrics, logs, log conditions or activity log. Ask your PMs if you don't know.
0 commit comments