How to get Availability Groups connection Report
AruSoft
Posts: 1 New member
How can I get a report that show how often I am getting this error "Always On Availability Groups connection with secondary database terminated for primary database "
Thanks
Thanks
Tagged:
Answers
Something like this would count the number of entries with that text in the current errorlog:
This is only in the current errorlog, so you could modify the above to do several inserts from the most recent errorlogs perhaps (this is the first parameter - 0 is current, 1 is first archived, etc.)
And you would only need to run this against the master database, so it would look something like this:
If you just need to see the numbers quickly you can use the test metric on this page to see the current values.
You would then be able to add a report tile of "Analysis graph" type for that custom metric to see this in a report.
That result is going to be as good as the query that is written though, and depends on the rolling over of the errorlog files, so it would be good to make the suggestion on the SQL Monitor Uservoice forum here for having a built in manner to do this: https://sqlmonitor.uservoice.com/forums/91743-suggestions/filters/top
Have you visited our Help Center?