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/site-recovery/monitor-log-analytics.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Monitor Azure Site Recovery with Azure Monitor Logs
3
3
description: Learn how to monitor Azure Site Recovery with Azure Monitor Logs (Log Analytics)
4
4
ms.service: site-recovery
5
5
ms.topic: conceptual
6
-
ms.date: 11/15/2019
6
+
ms.date: 02/07/2023
7
7
ms.author: ankitadutta
8
8
author: ankitaduttaMSFT
9
9
@@ -12,23 +12,23 @@ author: ankitaduttaMSFT
12
12
13
13
This article describes how to monitor machines replicated by Azure [Site Recovery](site-recovery-overview.md), using [Azure Monitor Logs](../azure-monitor/logs/data-platform-logs.md), and [Log Analytics](../azure-monitor/logs/log-query-overview.md).
14
14
15
-
Azure Monitor Logs provide a log data platform that collects activity and resource logs, along with other monitoring data. Within Azure Monitor Logs, you use Log Analytics to write and test log queries, and to interactively analyze log data. You can visualize and query log results, and configure alerts to take actions based on monitored data.
15
+
Azure Monitor Logs provide a log data platform that collects activity and resource logs, along with other monitoring data. Within Azure Monitor Logs, you use Log Analytics to write and test log queries and interactively analyze log data. You can visualize and query log results, and configure alerts to take actions based on monitored data.
16
16
17
17
For Site Recovery, you can use Azure Monitor Logs to help you do the following:
18
18
19
19
-**Monitor Site Recovery health and status**. For example, you can monitor replication health, test failover status, Site Recovery events, recovery point objectives (RPOs) for protected machines, and disk/data change rates.
20
20
-**Set up alerts for Site Recovery**. For example, you can configure alerts for machine health, test failover status, or Site Recovery job status.
21
21
22
-
Using Azure Monitor Logs with Site Recovery is supported for **Azure to Azure** replication, and **VMware VM/physical server to Azure** replication.
22
+
Using Azure Monitor Logs with Site Recovery is supported for **Azure to Azure** replication and **VMware VM/physical server to Azure** replication.
23
23
24
24
> [!NOTE]
25
-
> To get the churn data logs and upload rate logs for VMware and physical machines, you need to install a Microsoft monitoring agent on the Process Server. This agent sends the logs of the replicating machines to the workspace. This capability is available only for 9.30 mobility agent version onwards.
25
+
> To get the churn data logs and upload rate logs for VMware and physical machines, you need to install a Microsoft monitoring agent on the Process Server. This agent sends the logs of the replicating machines to the workspace. This capability is available only for the 9.30 mobility agent version onwards.
26
26
27
-
## Before you start
27
+
## Prerequisites
28
28
29
29
Here's what you need:
30
30
31
-
- At least one machine protected in a Recovery Services vault.
31
+
- At least one machine is protected in a Recovery Services vault.
32
32
- A Log Analytics workspace to store Site Recovery logs. [Learn about](../azure-monitor/logs/quick-create-workspace.md) setting up a workspace.
33
33
- A basic understanding of how to write, run, and analyze log queries in Log Analytics. [Learn more](../azure-monitor/logs/log-analytics-tutorial.md).
34
34
@@ -41,7 +41,7 @@ We recommend that you review [common monitoring questions](monitoring-common-que
41
41

42
42
43
43
2. In **Diagnostic settings**, specify a name, and check the box **Send to Log Analytics**.
44
-
3. Select the Azure Monitor Logs subscription, and the Log Analytics workspace.
44
+
3. Select the Azure Monitor Logs subscription and the Log Analytics workspace.
45
45
4. Select **Azure Diagnostics** in the toggle.
46
46
5. From the log list, select all the logs with the prefix **AzureSiteRecovery**. Then select **OK**.
47
47
@@ -55,12 +55,12 @@ You can capture the data churn rate information and source data upload rate info
55
55
56
56
1. Go to the Log Analytics workspace and select **Advanced Settings**.
57
57
2. Select **Connected Sources** page and further select **Windows Servers**.
58
-
3. Download the Windows Agent (64bit) on the Process Server.
58
+
3. Download the Windows Agent (64-bit) on the Process Server.
59
59
4.[Obtain the workspace ID and key](../azure-monitor/agents/agent-windows.md#workspace-id-and-key)
60
60
5.[Configure agent to use TLS 1.2](../azure-monitor/agents/agent-windows.md#configure-agent-to-use-tls-12)
61
61
6.[Complete the agent installation](../azure-monitor/agents/agent-windows.md#install-the-agent) by providing the obtained workspace ID and key.
62
-
7. Once the installation is complete, go to Log Analytics workspace and select **Advanced Settings**. Go to the **Data** page and select **Windows Performance Counters**.
63
-
8. Select **'+'** to add the following two counters with sample interval of 300 seconds:
62
+
7. Once the installation is complete, go to Log Analytics workspace and select **Legacy agents management**. Go to the **Data** page and select **Windows Performance Counters**.
63
+
8. Select **'+'** to add the following two counters with a sample interval of 300 seconds:
> Ensure you set up the monitoring agent on the Process Server to fetch these logs. Refer [steps to configure monitoring agent](#configure-microsoft-monitoring-agent-on-the-process-server-to-send-churn-and-upload-rate-logs).
210
210
211
-
This query plots a trend graph for a specific disk, **disk0**, of a replicated item, **win-9r7sfh9qlru**, which represents the data change rate (Write Bytes per Second) and data upload rate. You can find the disk name on **Disks** blade of the replicated item in the recovery services vault. Instance name to be used in the query is DNS name of the machine followed by _ and disk name as in this example.
211
+
This query plots a trend graph for a specific disk, **disk0**, of a replicated item, **win-9r7sfh9qlru**, which represents the data change rate (Write Bytes per Second) and data upload rate. You can find the disk name on the **Disks** blade of the replicated item in the recovery services vault. The instance name to be used in the query is the DNS name of the machine followed by _ and the disk name as in this example.
212
212
213
213
```
214
214
Perf
@@ -222,7 +222,7 @@ Process Server pushes this data every 5 minutes to the Log Analytics workspace.
222
222
223
223
### Query disaster recovery summary (Azure to Azure)
224
224
225
-
This query plots a summary table for Azure VMs replicated to a secondary Azure region. It shows VM name, replication and protection status, RPO, test failover status, Mobility agent version, any active replication errors, and the source location.
225
+
This query plots a summary table for Azure VMs replicated to a secondary Azure region. It shows the VM name, replication, and protection status, RPO, test failover status, Mobility agent version, any active replication errors, and the source location.
This query plots a summary table for VMware VMs and physical servers replicated to Azure. It shows machine name, replication and protection status, RPO, test failover status, Mobility agent version, any active replication errors, and the relevant process server.
237
+
This query plots a summary table for VMware VMs and physical servers replicated to Azure. It shows the machine name, replication and protection status, RPO, test failover status, Mobility agent version, any active replication errors, and the relevant process server.
238
238
239
239
```
240
240
AzureDiagnostics
@@ -263,7 +263,7 @@ AzureDiagnostics
263
263
| summarize hint.strategy=partitioned arg_max(TimeGenerated, *) by name_s
264
264
| summarize count()
265
265
```
266
-
For the alert, set **Threshold value** to 20.
266
+
For the alert, set **Threshold value** to `20`.
267
267
268
268
### Single machine in a critical state
269
269
@@ -278,7 +278,7 @@ AzureDiagnostics
278
278
| summarize hint.strategy=partitioned arg_max(TimeGenerated, *) by name_s
279
279
| summarize count()
280
280
```
281
-
For the alert, set **Threshold value** to 1.
281
+
For the alert, set **Threshold value** to `1`.
282
282
283
283
### Multiple machines exceed RPO
284
284
@@ -292,7 +292,7 @@ AzureDiagnostics
292
292
| project name_s , rpoInSeconds_d
293
293
| summarize count()
294
294
```
295
-
For the alert, set **Threshold value** to 20.
295
+
For the alert, set **Threshold value** to `20`.
296
296
297
297
### Single machine exceeds RPO
298
298
@@ -308,7 +308,7 @@ AzureDiagnostics
308
308
| project name_s , rpoInSeconds_d
309
309
| summarize count()
310
310
```
311
-
For the alert, set **Threshold value** to 1.
311
+
For the alert, set **Threshold value** to `1`.
312
312
313
313
### Test failover for multiple machines exceeds 90 days
314
314
@@ -323,9 +323,9 @@ AzureDiagnostics
323
323
| summarize hint.strategy=partitioned arg_max(TimeGenerated, *) by name_s
324
324
| summarize count()
325
325
```
326
-
For the alert, set **Threshold value** to 20.
326
+
For the alert, set **Threshold value** to `20`.
327
327
328
-
### Test failover for single machine exceeds 90 days
328
+
### Test failover for a single machine exceeds 90 days
329
329
330
330
Set up an alert if the last successful test failover for a specific VM was more than 90 days ago.
331
331
```
@@ -338,7 +338,7 @@ AzureDiagnostics
338
338
| summarize hint.strategy=partitioned arg_max(TimeGenerated, *) by name_s
0 commit comments