-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8fce171
commit b171eb9
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--Most common events by event number and raw event description (this will take a very long time to run but it shows us not only event ID – but a description of the event to help understand which MP is the generating the noise) | ||
SELECT top 100 EventDisplayNumber, Rawdescription, COUNT(*) AS TotalEvents | ||
--Most common events by event number and raw event description and computer name (this will take a very long time to run but it shows us not only event ID – but a description of the event to help understand which MP is the generating the noise) | ||
SELECT top 100 evt.EventDisplayNumber, evtd.RawDescription, evtlc.ComputerName, COUNT(*) AS TotalEvents | ||
FROM Event.vEvent evt | ||
inner join Event.vEventDetail evtd on evt.eventoriginid = evtd.eventoriginid | ||
GROUP BY EventDisplayNumber, Rawdescription | ||
inner join vEventLoggingComputer evtlc on evt.LoggingComputerRowId = evtlc.EventLoggingComputerRowId | ||
GROUP BY evt.EventDisplayNumber, evtd.RawDescription, evtlc.ComputerName | ||
ORDER BY TotalEvents DESC |