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
Copy file name to clipboardExpand all lines: articles/backup/backup-azure-diagnostic-events.md
+32-10Lines changed: 32 additions & 10 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: Use diagnostics settings for Recovery Services vaults
3
3
description: 'This article describes how to use the old and new diagnostics events for Azure Backup.'
4
4
ms.topic: conceptual
5
-
ms.date: 10/30/2019
5
+
ms.date: 03/31/2023
6
6
author: jyothisuri
7
7
ms.author: jsuri
8
8
---
@@ -20,7 +20,6 @@ You can configure diagnostics settings for a Recovery Services vault via the Azu
20
20
Azure Backup provides the following diagnostics events. Each event provides detailed data on a specific set of backup-related artifacts:
21
21
22
22
* CoreAzureBackup
23
-
* AddonAzureBackupAlerts
24
23
* AddonAzureBackupProtectedInstance
25
24
* AddonAzureBackupJobs
26
25
* AddonAzureBackupPolicy
@@ -38,31 +37,54 @@ You can now use Azure Backup to send vault diagnostics data to dedicated Log Ana
38
37
39
38
To send your vault diagnostics data to Log Analytics:
40
39
41
-
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**.
1. Go to your *vault*, and then select **Diagnostic Settings** > **+ Add Diagnostic Setting**.
45
+
1. Provide a name to the *diagnostics setting*.
46
+
1. Select the **Send to Log Analytics** checkbox, and then select a *Log Analytics workspace*.
47
+
1. Select **Resource specific** in the toggle, and select the following five events: **CoreAzureBackup**, **AddonAzureBackupJobs**, **AddonAzureBackupPolicy**, **AddonAzureBackupStorage**, and **AddonAzureBackupProtectedInstance**.
1. Go to your *vault*, and then select **Diagnostic Settings** > **+ Add Diagnostic Setting**.
55
+
2. Provide a name to the *diagnostics setting*.
56
+
3. Select the **Send to Log Analytics** checkbox, and then select a *Log Analytics workspace*.
57
+
4. Select the following events: **CoreAzureBackup**, **AddonAzureBackupJobs**, **AddonAzureBackupPolicy**, and **AddonAzureBackupProtectedInstance**.
58
+
5. Select **Save**.
59
+
60
+
61
+
62
+
---
48
63
49
64
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
65
51
66
> [!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.*
67
+
> 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 appear in Backup reports.*
68
+
>
69
+
> *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 the 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.
70
+
>
71
+
> For Backup vaults, since information on the frontend size and backup storage consumed are already included in the *CoreAzureBackup* and *AddonAzureBackupProtectedInstances* events (to aid query performance), the *AddonAzureBackupStorage event* isn't applicable for Backup vault, to avoid creation of redundant tables.
53
72
54
73
## Legacy event
55
74
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.
75
+
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
76
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:
77
+
Currently, we continue to support the *AzureBackupReport* event for Recovery Services vaults, backward compatibility in cases where you've existing custom queries on this event. For example, 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
78
60
79
* Make the data much easier to work with in log queries.
61
80
* Provide better discoverability of schemas and their structure.
62
81
* Improve performance across both ingestion latency and query times.
63
82
64
83
*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
84
85
+
> [!NOTE]
86
+
> For Backup vaults, all diagnostics events are sent to the resource-specific tables only; so, you don't need to do any migration for Backup vaults. The following section is specific to Recovery services vaults.
87
+
66
88
### Steps to move to new diagnostics settings for a Log Analytics workspace
67
89
68
90
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: 04/18/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 fetch the data you want to be alerted on. Paste the following sample Kusto queries on 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 ([learn more](backup-azure-monitoring-built-in-monitor.md)). So, this section is split into multiple sub-sections that helps you to use the right queries depending on which workload or vault types you want 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 workloads
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 workloads
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