Skip to content

Commit

Permalink
Update and rename DW_Events_ByNumber.sql to DW_Events_ByTotalEvents.s…
Browse files Browse the repository at this point in the history
…ql 🌵
  • Loading branch information
blakedrumm authored May 7, 2024
1 parent 48c7d78 commit d7fdb4c
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
----------------------------------------------------------------------------------------------------------------
-- Name: DW_Events_ByTotalEvents.sql
--
-- Description:
-- This SQL script retrieves the top 100 most common events from the event logging system, providing
-- insights into the events that occur most frequently. The query returns the event display number, raw description
-- of the event, the computer name where the event was logged, and the total number of occurrences of each event.
-- Additionally, it calculates the span of days over which each event has been logged, helping identify long-running
-- or persistent issues. This query is designed to assist in identifying patterns or anomalies in event logs, particularly
-- useful in large-scale environments where understanding event noise and distribution can aid in proactive management and troubleshooting.
--
-- Author: Blake Drumm (blakedrumm@microsoft.com)
-- Date Created: May 7th, 2024
-- Original query: https://kevinholman.com/2016/11/11/scom-sql-queries/#:~:text=Events%20Section%20(Warehouse)
----------------------------------------------------------------------------------------------------------------
-- Selects the top 100 records from the result set
SELECT TOP 100
evt.EventDisplayNumber, -- Display number of the event
Expand Down

0 comments on commit d7fdb4c

Please sign in to comment.