Monitor disaster Recovery Critical errors for Azure VM

Rahul 276 Reputation points
2023-05-26T17:19:43.2633333+00:00

Hello Team,

I'm looking KQL Query to Monitor Disaster Recovery Critical Errors. I'm not found any Existing Metric or Signal in Azure monitor Alert for the same. I enabled Diagnostics Settings under Recovery Vault to send Disaster Recovery logs to the Log Analytics workspace. Sometimes the Agent Status shows me a Red flag Critical due to Agent Version Upgrade.

Can we track DR health using KQL? How would be KQL Query?
User's image

Thanks

Rahul

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,800 questions
Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
633 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tech-Hyd-1989 5,741 Reputation points
    2023-05-27T18:43:14.46+00:00

    Hello Rahul,

    You can use Kusto Query Language (KQL) to monitor disaster recovery critical errors. You can use the Azure Site Recovery logs that are sent to the Log Analytics workspace to create a query that will alert you when critical errors occur. Here is an example KQL query that you can use to monitor disaster recovery critical errors:

    AzureDiagnostics
    | where Category == "AzureSiteRecoveryEvents"
    | where Level == "Critical"
    | where TimeGenerated > ago(1d)
    

    This query will return all critical events from the last 24 hours. You can modify the query to fit your specific needs by changing the time range or adding additional filters. You can also use this query to create an alert in Azure Monitor that will notify you when critical errors occur.

    You can also use KQL to monitor the agent status of your disaster recovery. Here's an example query:

    AzureDiagnostics
    | where Category == "AzureSiteRecovery"
    | where Level == "Critical"
    | where Message contains "Agent Status"
    
    

    <If the above details are helpful, please don't forget to accept answer to help others in the community>


0 additional answers

Sort by: Most helpful