Skip to content

Commit b171eb9

Browse files
authored
Add computer name to output ✅
1 parent 8fce171 commit b171eb9

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
--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)
2-
SELECT top 100 EventDisplayNumber, Rawdescription, COUNT(*) AS TotalEvents
1+
--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)
2+
SELECT top 100 evt.EventDisplayNumber, evtd.RawDescription, evtlc.ComputerName, COUNT(*) AS TotalEvents
33
FROM Event.vEvent evt
44
inner join Event.vEventDetail evtd on evt.eventoriginid = evtd.eventoriginid
5-
GROUP BY EventDisplayNumber, Rawdescription
5+
inner join vEventLoggingComputer evtlc on evt.LoggingComputerRowId = evtlc.EventLoggingComputerRowId
6+
GROUP BY evt.EventDisplayNumber, evtd.RawDescription, evtlc.ComputerName
67
ORDER BY TotalEvents DESC

0 commit comments

Comments
 (0)