You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Go to your vault, and select **Diagnostic Settings**. Select **+ Add Diagnostic Setting**.
45
+
2. Give a name to the diagnostics setting.
46
+
3. Select the **Send to Log Analytics** check box, and select a Log Analytics workspace.
47
+
4. Select **Resource specific** in the toggle, and select the following five events: **CoreAzureBackup**, **AddonAzureBackupJobs**, **AddonAzureBackupPolicy**, **AddonAzureBackupStorage**, and **AddonAzureBackupProtectedInstance**.
1. Go to your vault, and select **Diagnostic Settings**. Select **+ Add Diagnostic Setting**.
42
-
1. Give a name to the diagnostics setting.
43
-
1. Select the **Send to Log Analytics** check box, and select a Log Analytics workspace.
44
-
1. Select **Resource specific** in the toggle, and select the following six events: **CoreAzureBackup**, **AddonAzureBackupJobs**, **AddonAzureBackupAlerts**, **AddonAzureBackupPolicy**, **AddonAzureBackupStorage**, and **AddonAzureBackupProtectedInstance**.
45
-
1. Select **Save**.
55
+
2. Give a name to the diagnostics setting.
56
+
3. Select the **Send to Log Analytics** check box, and select a Log Analytics workspace.
57
+
4. Select the following events: **CoreAzureBackup**, **AddonAzureBackupJobs**, **AddonAzureBackupPolicy** and **AddonAzureBackupProtectedInstance**.
After data flows into the Log Analytics workspace, dedicated tables for each of these events are created in your workspace. You can query any of these tables directly. You can also perform joins or unions between these tables if necessary.
50
63
51
64
> [!IMPORTANT]
52
-
> The six events, namely, CoreAzureBackup, AddonAzureBackupJobs, AddonAzureBackupAlerts, AddonAzureBackupPolicy, AddonAzureBackupStorage, and AddonAzureBackupProtectedInstance, are supported *only* in the resource-specific mode in [Backup reports](./configure-reports.md). *If you try to send data for these six events in Azure diagnostics mode, no data will be visible in Backup reports.*
65
+
> The six events, namely, CoreAzureBackup, AddonAzureBackupJobs, AddonAzureBackupAlerts, AddonAzureBackupPolicy, AddonAzureBackupStorage, and AddonAzureBackupProtectedInstance, are supported *only* in the resource-specific mode for Recovery Services vaults in [Backup reports](./configure-reports.md). *If you try to send data for these six events in Azure diagnostics mode, no data will be visible in Backup reports.*
66
+
> AddonAzureBackupAlerts refers to the alerts being generated by the classic alerts solution. As classic alerts solution is on deprecation path in favour of Azure Monitor based alers, we recommend you not to select this event AddonAzureBackupAlerts when configuring diagnostics settings. To send the fired Azure Monitor based alerts to a destination of your choice, you can create an alert processing rule and action group that routes these alerts to a logic app, webhook, or runbook that in turn sends these alerts to the required destination.
67
+
> For Backup vaults, since information on the frontend size and backup storage consumed is already included in the CoreAzureBackup and AddonAzureBackupProtectedInstances events (to aid query performance), the AddonAzureBackupStorage event is not applicable for Backup vault, to avoid creation of redundant tables.
53
68
54
69
## Legacy event
55
70
56
-
Traditionally, all backup-related diagnostics data for a vault was contained in a single event called AzureBackupReport. The six events described here are, in essence, a decomposition of all the data contained in AzureBackupReport.
71
+
Traditionally, for Recovery Services vaults, all backup-related diagnostics data for a vault was contained in a single event called AzureBackupReport. The six events described here are, in essence, a decomposition of all the data contained in AzureBackupReport.
57
72
58
-
Currently, we continue to support the AzureBackupReport event for backward compatibility in cases where users have existing custom queries on this event. Examples are custom log alerts and custom visualizations. *We recommend that you move to the [new events](#diagnostics-events-available-for-azure-backup-users) as early as possible*. The new events:
73
+
Currently, we continue to support the AzureBackupReport event for Recovery Services vaults, backward compatibility in cases where users have existing custom queries on this event. Examples are custom log alerts and custom visualizations. *We recommend that you move to the [new events](#diagnostics-events-available-for-azure-backup-users) as early as possible*. The new events:
59
74
60
75
* Make the data much easier to work with in log queries.
61
76
* Provide better discoverability of schemas and their structure.
62
77
* Improve performance across both ingestion latency and query times.
63
78
64
79
*The legacy event in Azure diagnostics mode will eventually be deprecated. Choosing the new events might help you to avoid complex migrations at a later date*. Our [reporting solution](./configure-reports.md) that uses Log Analytics will also stop supporting data from the legacy event.
65
80
81
+
> [!NOTE]
82
+
> For Backup vaults, all diagnostics events are sent to the resource-specific tables only, and hence you don't need to do any migration for Backup vaults. The below section is specific to Recovery services vaults.
83
+
66
84
### Steps to move to new diagnostics settings for a Log Analytics workspace
67
85
68
86
1. Identify which vaults are sending data to the Log Analytics workspaces by using the legacy event and the subscriptions they belong to. Run the following query in each of your workspaces to identify these vaults and subscriptions.
Copy file name to clipboardExpand all lines: articles/backup/backup-azure-monitoring-use-azuremonitor.md
+39-2Lines changed: 39 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Monitor Azure Backup with Azure Monitor
3
3
description: Monitor Azure Backup workloads and create custom alerts by using Azure Monitor.
4
4
ms.topic: conceptual
5
-
ms.date: 06/04/2019
5
+
ms.date: 03/31/2023
6
6
ms.assetid: 01169af5-7eb0-4cb0-bbdb-c58ac71bf48b
7
7
author: jyothisuri
8
8
ms.author: jsuri
@@ -57,7 +57,11 @@ For more information, see [Create, view, and manage log alerts by using Azure Mo
57
57
58
58
### Sample Kusto queries
59
59
60
-
The default graphs give you Kusto queries for basic scenarios on which you can build alerts. You can also modify the queries to get the data you want to be alerted on. Paste the following sample Kusto queries in the **Logs** page and then create alerts on the queries:
60
+
The default graphs give you Kusto queries for basic scenarios on which you can build alerts. You can also modify the queries to get the data you want to be alerted on. Paste the following sample Kusto queries in the **Logs** page and then create alerts on the queries.
61
+
62
+
Recovery Services vaults and Backup vaults send data to a common set of tables that are listed in this article. However, there are slight differences in the schema for Recovery Services vaults and Backup vaults (refer [this page](backup-azure-monitoring-built-in-monitor.md) for more details). Hence this section is split into multiple sub-sections, so that you can use the right queries depending on which workload or vault types you are looking to query.
63
+
64
+
#### Queries common across Recovery Services vaults and Backup vaults
61
65
62
66
- All successful backup jobs
63
67
@@ -77,6 +81,8 @@ The default graphs give you Kusto queries for basic scenarios on which you can b
77
81
| where JobStatus=="Failed"
78
82
````
79
83
84
+
#### Queries specific to Recovery Services vault worklods
85
+
80
86
- All successful Azure VM backup jobs
81
87
82
88
````Kusto
@@ -147,6 +153,37 @@ The default graphs give you Kusto queries for basic scenarios on which you can b
147
153
| sort by StorageConsumedInMBs desc
148
154
````
149
155
156
+
#### Queries specific to Backup vault worklods
157
+
158
+
- All successful Azure PostgreSQL backup jobs
159
+
160
+
````Kusto
161
+
AddonAzureBackupJobs
162
+
| where JobOperation=="Backup"
163
+
| summarize arg_max(TimeGenerated,*) by JobUniqueId
164
+
| where DatasourceType == "Microsoft.DBforPostgreSQL/servers/databases"
165
+
| where JobStatus=="Completed"
166
+
````
167
+
168
+
- All successful Azure Disk restore jobs
169
+
170
+
````Kusto
171
+
AddonAzureBackupJobs
172
+
| where JobOperation == "Restore"
173
+
| summarize arg_max(TimeGenerated,*) by JobUniqueId
174
+
| where DatasourceType == "Microsoft.Compute/disks"
175
+
| where JobStatus=="Completed"
176
+
````
177
+
178
+
- Backup Storage Consumed per Backup Item
179
+
180
+
````Kusto
181
+
CoreAzureBackup
182
+
| where OperationName == "BackupItem"
183
+
| summarize arg_max(TimeGenerated, *) by BackupItemUniqueId
The diagnostic data from the vault is pumped to the Log Analytics workspace with some lag. Every event arrives at the Log Analytics workspace *20 to 30 minutes* after it's pushed from the Recovery Services vault. Here are further details about the lag:
0 commit comments