|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Yesterday @ 5:40 PM
Points: 1,631,
Visits: 2,834
|
|
I would like to see if any errors in SQL log.
Is that possible using some query for all the servers in my central server management to pull it?
A query maybe looks for the word Error in the log file ?
Thanks
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 4:32 PM
Points: 2,063,
Visits: 3,787
|
|
Are you storing the data from all the SQL log files in a table on the Centralized server?
______________________________________________________________________________ "Never argue with an idiot; They'll drag you down to their level and beat you with experience"
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Monday, June 10, 2013 1:59 PM
Points: 169,
Visits: 447
|
|
use the local server group in SSMS and then use something like sp_readerrorlog to seach for what your looking for, not the most elegent, but just a thought I had
No signature available.
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Today @ 2:10 AM
Points: 578,
Visits: 1,107
|
|
use the local server group in SSMS and then use something like sp_readerrorlog to seach for what your looking for, not the most elegent, but just a thought I had
I agree with this. If your servers are registered in a central management server you can write a query in a query window and execute it against all your systems. You can use sp_readerrorlog or xp_readerrorlog. I prefer using xp_readerrorlog because you can filter with a keyword.
Here is an article on the parameters you can use with xp_readerrorlog:
Reading the SQL Server log files using TSQL
Joie Andrew "Since 1982"
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Yesterday @ 8:57 AM
Points: 143,
Visits: 452
|
|
What I have done is create a powershell script that goes to all of my instances, scans the log from a given timestamp and sends me email reports for errors of a given type.
Types: login errors deadlocks backup errors Severity > 20 (pages) failed sa (and other elevated logins) login attempts user defiend errors IO errors Other.
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Yesterday @ 5:40 PM
Points: 1,631,
Visits: 2,834
|
|
Can you share your powershell script?
Thanks,
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Yesterday @ 8:57 AM
Points: 143,
Visits: 452
|
|
| Sorry, I have IP constraints.
|
|
|
|