File tree Expand file tree Collapse file tree
SQL Queries/Data Warehouse Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 (blakedrumm@microsoft.com)
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
217SELECT TOP 100
318 evt .EventDisplayNumber , -- Display number of the event
You can’t perform that action at this time.
0 commit comments