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: support/sql/database-engine/availability-groups/use-agdiag-diagnose-availability-group-health-events.md
+15-16Lines changed: 15 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Use AGDiag to diagnose availability group health events
3
3
description: This article describes how to use AGDiag to diagnose availability group health events.
4
4
ms.date: 05/15/2023
5
5
ms.custom: sap:Always On Availability Groups (AG)
6
-
ms.reviewer: cmathews, v-sidong
6
+
ms.reviewer: cmathews, v-sidong, v-shaywood
7
7
---
8
8
# Use AGDiag to diagnose availability group health events
9
9
@@ -14,40 +14,39 @@ AGDiag is an application that automates the manual analysis described in the art
14
14
15
15
## Generate logs for AGDiag to diagnose
16
16
17
-
You can use multiple methods to generate the logs that AGDiag uses as inputs. AGDiag relies on the following base logs to do analysis:
17
+
You can use multiple methods to generate the logs that AGDiag takes as inputs. AGDiag relies on the following base logs to do analysis:
18
18
19
19
- Windows Cluster Diagnostic Logs
20
20
- SQL Server Error Logs
21
21
- Windows System Event Logs
22
22
- System Health Extended Events (XEL) files
23
23
- AlwaysOn Health Session XEL files
24
24
25
-
Besides the manual collection of these logs, you can use either of two log collection tools to capture them.
25
+
Besides manually collecting these logs, you can use either of the following log collection tools to capture them:
26
26
27
-
Use one of these log collection tools:
27
+
- LogScout
28
+
- TSS
28
29
29
30
### Use SQL LogScout to capture logs for AGDiag analysis
30
31
31
-
To diagnose an availability group health event, use the SQL LogScout to collect logs on the SQL Server instance that was in the primary role at the time of the event.
32
+
To diagnose an availability group health event, use the SQL LogScout to collect logs on the SQL Server instance that was in the primary role at the time of the event:
32
33
33
34
1. Download the latest [SQL LogScout](https://aka.ms/get-sqllogscout) as zip file.
34
-
1. Save and extract the zip file in a folder on the machine where SQL Server hosts the primary replica. This system is where the failover started or the availability group was resolving.
35
-
1. Open an elevated PowerShell command (Run as Administrator), change the directory to the SQL LogScout folder where the zip file was extracted
36
-
1. Run the following command to capture the `Basic` scenario and follow the prompts
35
+
1. Save and extract the zip file on the machine where SQL Server hosts the primary replica. This system is where the failover started or the availability group was resolving.
36
+
1. Open an elevated PowerShell command (Run as Administrator), change the directory to the SQL LogScout folder where the zip file was extracted.
37
+
1. Run the following command to capture the `Basic` scenario and follow the prompts.
:::image type="content" source="media/use-agdiag-diagnose-availability-group-health-events/launch-sql-logscout-powershell.png" alt-text="screenshot for starting SQL LogScout from an elevated PowerShell command window":::
43
+
:::image type="content" source="media/use-agdiag-diagnose-availability-group-health-events/launch-sql-logscout-powershell.png" alt-text="Screenshot of starting SQL LogScout from an elevated PowerShell command window":::
43
44
44
-
1. Once the process of log capturing is complete, you can point AGDiag to the **\output** folder where SQL LogScout collected the logs.
45
+
1. Once the log capture process is complete, you can point AGDiag to the `\output` folder created inside the SQL LogScout folder. This folder contains the logs collected by SQL LogScout.
45
46
46
47
### Use TSS to generate logs for AGDiag to diagnose
47
48
48
-
Alternatively, to capture the logs you can use the TSS on the SQL Server instance that was in the primary role at the time of the event.
49
-
50
-
To accomplish this goal, follow these steps:
49
+
Alternatively, you can capture the logs using the TSS on the SQL Server instance that was in the primary role at the time of the event:
51
50
52
51
1. Download the toolset ([TSSv2.zip](https://aka.ms/getTSS)) as a zip file. For more information, see [Introduction to TroubleShootingScript toolset (TSSv2)](../../../windows-client/windows-troubleshooters/introduction-to-troubleshootingscript-toolset-tssv2.md).
53
52
@@ -90,15 +89,15 @@ The AGDiag report should be launched in the default system browser. The followin
90
89
91
90
:::image type="content" source="media/use-agdiag-diagnose-availability-group-health-events/agdiag-splash-screen.png" alt-text="Screenshot of the AGDiag Splash Screen." lightbox="media/use-agdiag-diagnose-availability-group-health-events/agdiag-splash-screen.png":::
92
91
93
-
- AGDiag reports on the logs analyzed in the initialize section. To expand more detailed information, select the triangles (highlighted in red boxes in the following image).
92
+
- AGDiag reports on the logs analyzed in the initialize section. To see more detailed information, select the triangles (highlighted in red boxes in the following image).
94
93
95
94
:::image type="content" source="media/use-agdiag-diagnose-availability-group-health-events/agdiag-report.png" alt-text="Screenshot of the AGDiag reports on the logs." lightbox="media/use-agdiag-diagnose-availability-group-health-events/agdiag-report.png":::
96
95
97
96
- The summary report lists the availability group health events from the cluster log. To jump to a specific health event's detailed report, select the numerical link, highlighted in red box in the following image.
98
97
99
98
:::image type="content" source="media/use-agdiag-diagnose-availability-group-health-events/availability-group-health-event-summary-report.png" alt-text="Screenshot of availability group health events." lightbox="media/use-agdiag-diagnose-availability-group-health-events/availability-group-health-event-summary-report.png":::
100
99
101
-
- There's a detailed report for each health event detected, which includes log findings that correlate to the health event, diagnosis, and recommendations. To expand more detailed information, select the triangles, highlighted in red boxes in the following image.
100
+
- There's a detailed report for each health event detected, which includes log findings that correlate to the health event, diagnosis, and recommendations. To see more detailed information, select the triangles, highlighted in red boxes in the following image.
102
101
103
102
:::image type="content" source="media/use-agdiag-diagnose-availability-group-health-events/alwayson-health-event.png" alt-text="Screenshot of AlwaysOn health events." lightbox="media/use-agdiag-diagnose-availability-group-health-events/alwayson-health-event.png":::
0 commit comments