Sub topic 13
Event Viewer: logs and event levels
Event Viewer is the Windows console that shows what the system, its services, and its applications have recorded. It is the first place to look when you need to know what happened and when. This chapter assumes you can open an MMC console (the Microsoft Management Console) and that you understand services and drivers at a basic level.
Opening Event Viewer
Any of these methods opens it:
- Press Win+R, type
eventvwr.msc, and press Enter. - Right-click Start and choose Event Viewer.
- Open Computer Management and expand System Tools, then Event Viewer.
Viewing local logs works for a standard user in many cases, but the Security log needs administrator rights.
The main logs
Under Windows Logs you will find five logs. Each one answers a different question.
| Log | What it records |
|---|---|
| Application | Events from installed programs, such as a crash in a business application |
| Security | Audit events, such as successful and failed sign-ins and file access |
| Setup | Events from installing updates and features |
| System | Events from Windows components, drivers, and services, such as a service that failed to start |
| Forwarded Events | Events collected from other computers |
For most exam scenarios, use System for driver, service, and boot problems. Use Application for a program that crashes. Use Security for failed logon attempts.
Event levels
Every event has a level that shows its severity.
| Level | Meaning |
|---|---|
| Information | Something completed normally |
| Warning | Something unexpected happened that may become a problem |
| Error | A function failed, such as a service that did not start |
| Critical | A serious failure, such as an unexpected shutdown |
| Audit Success / Audit Failure | Security log only. An audited action succeeded or was refused |
Each event also shows the date and time, source, Event ID, and task category. The Event ID is useful because you can search for it online to find a known cause.
Finding the relevant event
Logs can hold thousands of entries, so filter them.
- Select the log, such as System.
- Choose Filter Current Log in the Actions pane.
- Tick the levels you want, for example Critical and Error.
- Set a time range around the moment the problem occurred.
- Select OK, then double-click an event to read its details.
The Custom Views node saves a filter you use often. The built-in Administrative Events view already combines Critical, Error, and Warning events from all logs.
Managing logs
Right-click a log and open Properties to set its maximum size and what happens when it is full. The default is to overwrite old events as needed. Choose Clear Log to empty it. Use Save All Events As to export the log to an .evtx file before you clear it, so you keep a record for later analysis.
Exercise
A user reports that their PC rebooted by itself at about 2 p.m. and that a service failed to start afterward. Which Event Viewer log should you open first, and how do you narrow the results?
Show answer
Open the System log, because it holds service, driver, and shutdown events. Use Filter Current Log, select Critical and Error, and set a time range around 2 p.m. Then read the earliest event in that window and look up its Event ID.