info@techdevops.com | 437-991-3573 | Data Engineering Services
TechDevOps.com
Resources Tools
Experts in Microsoft SQL Server on Windows, Linux, Containers | Clusters, Always On, FCI | Migrations, Cloud, Performance



Get Number of Microsoft Systems Center (SCOM) Events Per ComputerName
by BF (Principal Consultant; Architecture; Engineering)
2017-08-30









T-SQL:


SELECT
TOP 50 UPPER(LoggingComputer) as 'Computer Name',
COUNT(*) AS 'Total Events'
FROM EventallView with (NOLOCK)
WHERE TimeGenerated > dateadd(dd,-7,getutcdate()) -- Scoped to within last 7 days
GROUP BY LoggingComputer
ORDER BY 'Total Events' DESC



Resources:

OpsMgr 2012 – Grooming deep dive in the OperationsManager database