SearchWindowsServer.com

Windows event log

By Kinza Yasar

What is the Windows event log?

The Windows event log is a detailed and chronological record of system, security and application notifications stored by the Windows operating system that network administrators use to diagnose system problems and predict future issues.

The operating system (OS) and applications use these event logs to record important hardware and software actions the administrator can use to troubleshoot issues with the OS. The Windows OS tracks specific events in its log files, such as application installations, security management, system setup operations on initial startup, and problems or errors.

Microsoft first offered the Windows event log the release of Windows Vista and Windows Server 2008. It has been included in all subsequent versions of Windows.

The elements of a Windows event log

Each event in a log entry contains the following information:

Here are some examples of how log entries are displayed.

Level Date Time Source Event ID Task Category
Information 5/16/2018 8:41:15 AM Service Control Manager 7036 None
Warning 5/11/2018 10:29:47 AM Kernel-Event Tracing 1 Logging
Error 5/16/2018 8:41:15 AM Service Control Manager 7001 None
Critical 5/11/2018 8:55:02 AM Kernel-Power 41 (63)

Information stored in Windows event logs

The Windows operating system records events in five areas -- application, security, setup, system and forwarded events:

Using the Event Viewer

In Windows, the event logs are stored in the C:\WINDOWS\system32\config\ folder. They are created for each system access, operating system blip, security modification, hardware malfunction and driver issue.

The role of the Event Viewer tool is to scan through those text log files and gather and present them in an intuitive user interface (UI), similar to how a database reporting tool would.

The following steps can be taken to check the events logs through the Event Viewer:

  1. Press the Windows key + R on the keyboard to open the Run window.
  2. Enter eventvwr in the Run dialog box and press OK.
  3. Expand the Windows Logs menu in the Event Viewer window.
  4. Notice the different types of event logs found under the Windows Logs menu, including application logs, security logs, setup logs, system logs and forwarded events.
  5. Click on one of the event logs to search for and view the recorded events under it.

Windows events severity levels

Windows categorizes every event with a severity level. The levels in order of severity are information, verbose, warning, error and critical.

Other tools to view Windows event logs

Microsoft also provides the wevtutil command-line utility in the System32 folder that retrieves event logs; runs queries; and exports, archives and clears logs.

A few popular third-party utilities that also work with Windows event logs include the following:

Using PowerShell to query events

Microsoft builds Windows event logs in Extensible Markup Language (XML) format with an EVTX extension. XML provides more granular information and a consistent format for structured data.

Administrators can build complicated XML queries with the Get-WinEvent PowerShell cmdlet to add or exclude events from a query.

Logs provide insightful information about a system's internal operations. Discover and investigate the function of Windows log monitoring in the enterprise.

14 Mar 2023

All Rights Reserved, Copyright 2000 - 2024, TechTarget | Read our Privacy Statement