We are excited to announce that Azure Video Indexer customers using paid ARM based accounts can now monitor their Audit logs (with Azure Monitor). This will allow you to gain deeper insights on the operations of your Azure Video Indexer resources and consume this data in flexible ways. This will allow users to analyze data, troubleshoot issues, set alerts for failed operations, and monitor the usage and identities accessing the Azure Video Indexer resource.
In November 2021, Azure Video Indexer introduced a new account type to public preview – ARM Based accounts. This enables users to better secure and monitor their accounts as well as many other benefits – see here to learn more. ARM Based accounts allow users to utilize many robust Azure native capabilities for Azure Video Indexer control plane while also enabling powerful integrations such as with Azure Monitor.
In this blog, we will help you get started by showing how to:
Set up Diagnostic Setting logs for the Azure Video Indexer account
To enable Diagnostic logs through the Azure Portal, take the following steps:
Under Monitoring choose Diagnostic settings.
Using Diagnostic settings, logs can be exported to several destinations: Event hub, storage account, third party solution or Azure Log Analytics. The following instructions are specific to exporting, configuring, and querying the logs using Azure Log Analytics.
Congratulations, in a few minutes and depending on the actions you would perform on the account you should see logs using the 'Logs' button through the Video Indexer resource or through the Log Analytics Workspace.
Using Azure Log Analytics to monitor Azure Video Indexer Audit logs
There are two ways to view and analyze logs produced by Azure Video Indexer:
VIAudit | where AccountId == "<YOUR ACCOUNT ID>" | where Status == "Failure" | project TimeGenerated, OperationName,CorrelationId, _ResourceId
Useful Kusto(KQL) queries for monitoring Azure Video Indexer resources
Querying of audit logs is done through the Video Indexer resource or log Analytics Workspace using Kusto query language.
In order to query Azure Video Indexer Audit table efficiently, in Log Analytics or in the resource view, we recommend exploring the table's structure here.
To get started easily, we would like to share some basic KQL queries:
Use the following query to look for failed operations and their cause.
As the examples show, in the last 24 hours, this account had four failures when attempting to upload a video. From the error message you can see the two different reasons for the failure. The first one is an access token that was expired, the second was due to an access token with wrong scope of permission.
// Project failures with detailed error message. VIAudit | where Status == "Failure" | parse Description with "ErrorType: " ErrorType ". Message: " ErrorMessage ". Trace" * | project TimeGenerated, OperationName, ErrorMessage, ErrorType, CorrelationId, _ResourceId
Search for the top 10 operations of the account:
For the selected time range, 28% of the operations were searching for videos with in the account.
VIAudit | summarize count() by OperationName | top 10 by count_ | render piechart
Query searching for top ten active user for an account.
// Trend of top 10 active Upn's VIAudit | 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
For more information on how to get started monitoring your Azure Video Indexer resource visit our public documentation.
For asks around monitoring Azure Video Indexer leave comments on this blog or visit our user voice page.
For those of you who are new to our technology, we encourage you to get started today with these helpful resources:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.