VIAudit テーブルのクエリ

Azure portal でこれらのクエリを使用する方法については、 Log Analytics のチュートリアルを参照してください。 REST API については、「 Query」を参照してください。

アカウント ID による Video Indexer 監査

アカウントの監査イベント (AccountId = <Guid ID>) を表示し、ユーザー UPN によるオプションのフィルター処理を行います。

VIAudit
| where AccountId == "<AccountId>"  // please fill in the accountId <Guid>
// | where Upn == "<Upn>" // to to filter on a specific user upn, uncomment this line
| limit 100

Video Indexer: 操作別の上位 10 人のユーザーを監査する

フィルター処理用の省略可能なアカウント ID を使用して、操作ごとに上位 10 人のユーザーのタイムチャートをレンダリングします。

// Trend of top 10 active Upn's
VIAudit
// | where AccountId == "<AccountId>"  // to filter on a specific accountId, uncomment this line
| where TimeGenerated > ago(30d)
| summarize count() by Upn
| top 10 by count_ desc
| project Upn
| join (VIAudit
| where TimeGenerated > ago(30d)
| summarize count() by Upn, bin(TimeGenerated,1d)) on Upn
| project TimeGenerated, Upn, count_
| render timechart

Video Indexer Audit parsed error message

フィルター処理用の省略可能なアカウント ID を使用して、監査に失敗したイベントを表示します。

// Project failures with detailed error message.
VIAudit
// | where AccountId == "<AccountId>"  // to filter on a specific accountId, uncomment this line
| where  Status == "Failure"
| parse Description with "ErrorType: " ErrorType ". Message: " ErrorMessage ". Trace" *
| project TimeGenerated, OperationName, ErrorMessage, ErrorType, CorrelationId, _ResourceId

Video Indexer の監査に失敗した操作

失敗したすべての操作試行の監査ログを、アカウント ID とユーザー UPN でオプションのフィルターで表示します。

VIAudit
// | where AccountId == "<AccountId>"  // to filter on a specific accountId, uncomment this line
// | where Upn == "<Upn>" // to to filter on a specific user upn, uncomment this line
| where Status == "Failure"
| limit 100