Skip to content

Commit 93f4e04

Browse files
authored
Create Noisiest-Rule.sql
1 parent 1bbd559 commit 93f4e04

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
-- Top 20 noisiest rules
2+
select DisplayName from RuleView where id in (select top 20 pcv.ruleid
3+
from PerformanceDataAllView as pdv, PerformanceCounterView as pcv
4+
where (pdv.performancesourceinternalid = pcv.PerformanceSourceInternalId)
5+
group by pcv.ObjectName, pcv.CounterName, pcv.ruleid
6+
order by COUNT (pcv.countername) desc)
7+
8+
select DisplayName from RuleView where id in (SELECT top 20 RuleId
9+
FROM EventAllView eav with (nolock)
10+
GROUP BY Number, PublisherName, RuleId
11+
ORDER BY COUNT(*) DESC)

0 commit comments

Comments
 (0)