Skip to content

Commit d7fdb4c

Browse files
authored
Update and rename DW_Events_ByNumber.sql to DW_Events_ByTotalEvents.sql 🌵
1 parent 48c7d78 commit d7fdb4c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

SQL Queries/Data Warehouse/DW_Events_ByNumber.sql renamed to SQL Queries/Data Warehouse/DW_Events_ByTotalEvents.sql

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
----------------------------------------------------------------------------------------------------------------
2+
-- Name: DW_Events_ByTotalEvents.sql
3+
--
4+
-- Description:
5+
-- This SQL script retrieves the top 100 most common events from the event logging system, providing
6+
-- insights into the events that occur most frequently. The query returns the event display number, raw description
7+
-- of the event, the computer name where the event was logged, and the total number of occurrences of each event.
8+
-- Additionally, it calculates the span of days over which each event has been logged, helping identify long-running
9+
-- or persistent issues. This query is designed to assist in identifying patterns or anomalies in event logs, particularly
10+
-- useful in large-scale environments where understanding event noise and distribution can aid in proactive management and troubleshooting.
11+
--
12+
-- Author: Blake Drumm ([email protected])
13+
-- Date Created: May 7th, 2024
14+
-- Original query: https://kevinholman.com/2016/11/11/scom-sql-queries/#:~:text=Events%20Section%20(Warehouse)
15+
----------------------------------------------------------------------------------------------------------------
116
-- Selects the top 100 records from the result set
217
SELECT TOP 100
318
evt.EventDisplayNumber, -- Display number of the event

0 commit comments

Comments
 (0)