
Rudi Bruchez EI · www.pachadata.com · rudi@pachadata.com · +33 6 22 48 76 99
Consulting, audit, performance tuning, solutions, training
SQL Server OLTP and BI / NoSQL
Version of October 14, 2026 (4308dcaa) · https://www.pachadata.com/en/docs/howtos/hadr/troubleshooting/
Troubleshooting AlwaysOn availability groups
Diagnosing the availability groups
- Collect the SQL Server error logs from the SQL Server log directory.
- Collect the files of the
AlwaysOn_healthevent session: thealwayson_health*.xelfiles, in the same SQL Server log directory.
You can find the SQL Server log directory with this query:
SELECT
LEFT(CAST(SERVERPROPERTY('ErrorLogFileName') as nvarchar(max)),
LEN(CAST(SERVERPROPERTY('ErrorLogFileName') as nvarchar(max))) - LEN('ERRORLOG'));
Diagnosing WSFC
You can export the cluster logs with the Get-ClusterLog cmdlet:
Import-Module FailoverClusters
Get-ClusterLog -UseLocalTime -Destination C:\temp\
Microsoft also provides a tool that collects the cluster diagnostics and logs. You can install it by following these instructions.
Install-PackageProvider NuGet -Force
Install-Module PrivateCloud.DiagnosticInfo -Force
Import-Module PrivateCloud.DiagnosticInfo -Force
Install-Module -Name MSFT.Network.Diag
Then call the cmdlet to generate the report into a directory:
New-Item -Name clusterdiag -Path c:\temp -ItemType Directory -Force
Get-SddcDiagnosticInfo -ClusterName cluster -WriteToPath c:\temp\clusterdiag
Contact
I have been an independent SQL Server consultant since 2006. I help when an application slows down, when a server costs too much in storage or licenses, or when a migration must not stop production: audit and diagnosis, query and index tuning, migrations, high availability, training. On site, or as a remote audit delivered in five working days.
rudi@pachadata.com · +33 6 22 48 76 99 · www.pachadata.com/en/contact/