Windows Server · Lesson 16

Event Viewer & Server Logs

Build evidence-based timelines from Windows Server logs instead of guessing from one error, one Event ID, or one suspicious timestamp.

Strong log analysis connects authentication, services, tasks, applications, Defender, updates, DNS, DHCP, Group Policy, and server-role evidence around the same time window.

Lesson Snapshot

Primary consoleeventvwr.msc
Core logsSystem / Security / App
Primary methodCorrelation
GoalEvidence timeline

Learning objectives

What this lesson should help you do

01

Use Event Viewer and PowerShell to investigate Windows Server activity without relying on isolated events.

02

Distinguish System, Security, Application, and role-specific event logs.

03

Build a timeline by correlating timestamps, event IDs, providers, users, processes, services, tasks, and network-related evidence.

04

Recognize high-value authentication, service, task, policy, update, Defender, DNS, and DHCP events.

05

Preserve logs and event details before clearing, overwriting, or changing the systems that produced them.

06

Verify server health after remediation by reviewing both functionality and new log evidence.

Core concepts

Understand the evidence before interpreting it

Event log

A structured record of activity written by Windows, services, applications, and security components.

Channel

A named log such as System, Security, Application, DNS Server, or a Microsoft-Windows operational log.

Provider

The component that generated the event, such as Service Control Manager, Security-Auditing, DNS Server, or TaskScheduler.

Event ID

A numeric identifier that helps classify an event, but the ID must still be interpreted with the provider and event details.

Timeline

A chronological sequence that connects related events instead of treating each log entry as an isolated fact.

Correlation

The process of comparing multiple logs, timestamps, identities, processes, services, and configuration changes to understand what happened.

Core idea

Logs are strongest when they agree with other evidence

A failed logon, service install, task launch, or Defender alert becomes more meaningful when another log confirms the same account, process, file, service, or time window.

Evidence boundary

Do not clear logs to make the server look clean

Logs are evidence for troubleshooting, verification, and investigation.

Preserve relevant events before remediation, restart, deletion, or cleanup.

Tool map

Exactly where to review server logs

Event Viewer

Win + R → eventvwr.msc

Quick action

Event Viewer → Windows Logs

Primary GUI for System, Security, Application, Setup, and Forwarded Events.

System log

Event Viewer → Windows Logs → System

Quick action

Filter by Critical, Error, Warning, provider, Event ID, or time

Useful for services, drivers, startup/shutdown, networking, hardware, and operating-system activity.

Security log

Event Viewer → Windows Logs → Security

Quick action

Review successful/failed logons, account changes, privilege use, and audit events

Available detail depends on the effective audit policy. Missing events do not automatically prove nothing happened.

Application log

Event Viewer → Windows Logs → Application

Quick action

Review application and framework errors

Useful when a required server application or service fails after a configuration change.

Task Scheduler log

Event Viewer → Applications and Services Logs → Microsoft → Windows → TaskScheduler → Operational

Quick action

Correlate task registration, trigger, action, success, and failure events

Important when scheduled tasks are used for required automation or suspicious persistence.

Defender log

Event Viewer → Applications and Services Logs → Microsoft → Windows → Windows Defender → Operational

Quick action

Review detections, remediation, configuration, and protection events

Preserve detection details before clearing history or changing suspicious files.

Windows Update log

Event Viewer → Applications and Services Logs → Microsoft → Windows → WindowsUpdateClient → Operational

Quick action

Review scan, download, installation, and update failures

Useful when patching behavior does not match what Windows Update reports in the GUI.

Role-specific logs

Event Viewer → Applications and Services Logs

Quick action

Review DNS Server, DHCP-Server, and other installed-role channels

Server roles often have their own logs with better context than the general Windows logs.

Windows logs

Know which log is most likely to answer the question

System

Services, drivers, boot, shutdown, devices, networking, and core operating-system components.

A required service fails to start after a configuration change.

Security

Authentication, account changes, group membership, audit policy, process creation, and other audited security activity.

Repeated failed logons followed by a successful privileged logon.

Application

Applications, frameworks, database engines, application services, and software-specific failures.

A required application crashes after a patch or service-account change.

Setup

Operating-system setup and some installation or servicing events.

A role, feature, or update-related installation event.

Forwarded Events

Events collected from other systems when Windows Event Forwarding is configured.

Centralized evidence from authorized domain systems.

Security log examples

High-value events to recognize

Event 4624

Successful logon

Useful for identifying account, logon type, source information, and timing of successful authentication.

Event 4625

Failed logon

Useful for reviewing failed authentication attempts and the account or source involved.

Event 4688

Process creation

Can show newly created processes when the required audit policy is enabled. Command-line detail depends on audit configuration.

Event 4720

User account created

Useful when investigating unexpected account creation in environments where this auditing is recorded.

Event 4728 / 4732

Member added to privileged or local groups

Can help identify membership changes in supported group contexts.

Event 4719

System audit policy changed

Important when auditing behavior unexpectedly changes.

Event 1102

Audit log cleared

A high-value event because clearing the Security log destroys evidence and deserves investigation.

System log examples

Services and startup timeline markers

Event 7045

Service installed

Service Control Manager

Useful when investigating newly created services or possible persistence.

Event 7036

Service state changed

Service Control Manager

Shows service transitions such as running or stopped.

Event 7031 / 7034

Service terminated unexpectedly

Service Control Manager

Useful when a required service repeatedly crashes or stops.

Event 6005

Event Log service started

EventLog

Often useful as a startup-related timeline marker.

Event 6006

Event Log service stopped

EventLog

Often useful as a normal shutdown-related timeline marker.

Event 6008

Unexpected shutdown

EventLog

Can indicate a crash, power loss, forced restart, or other abnormal shutdown.

Investigation questions

Twelve questions for every important event

01

What exact time did the event occur?

02

Which server generated it?

03

Which log and provider produced it?

04

What Event ID is shown?

05

Which user, computer, process, service, or task is referenced?

06

Was this event expected for the server role?

07

What happened immediately before it?

08

What happened immediately after it?

09

Does another log confirm or contradict the same activity?

10

Did the event coincide with a configuration change?

11

Did required functionality stop or start working at the same time?

12

What evidence should be preserved before remediation?

PowerShell inspection

Filter logs quickly with Get-WinEvent

Recent System events

Get-WinEvent -LogName System -MaxEvents 50 | Select-Object TimeCreated, Id, ProviderName, LevelDisplayName, Message

Provides a quick recent-event view for core server activity.

Recent Security events

Get-WinEvent -LogName Security -MaxEvents 50 | Select-Object TimeCreated, Id, ProviderName, Message

Reviews recent audited security events. Administrator rights are commonly required.

Recent Application events

Get-WinEvent -LogName Application -MaxEvents 50 | Select-Object TimeCreated, Id, ProviderName, LevelDisplayName, Message

Reviews recent application and framework events.

Filter failed logons

Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4625} -MaxEvents 30 | Select-Object TimeCreated, Id, Message

Narrows the Security log to failed logon events.

Filter service-install events

Get-WinEvent -FilterHashtable @{LogName='System'; ProviderName='Service Control Manager'; Id=7045} -MaxEvents 20 | Select-Object TimeCreated, Id, Message

Finds recent service-installation events.

Filter by time window

$start = (Get-Date).AddHours(-2); Get-WinEvent -FilterHashtable @{LogName='System'; StartTime=$start} | Select-Object TimeCreated, Id, ProviderName, Message

Limits investigation to a relevant time window instead of reviewing the entire log.

Task Scheduler events

Get-WinEvent -LogName 'Microsoft-Windows-TaskScheduler/Operational' -MaxEvents 60 | Select-Object TimeCreated, Id, LevelDisplayName, Message

Correlates scheduled-task activity with other server events.

Defender events

Get-WinEvent -LogName 'Microsoft-Windows-Windows Defender/Operational' -MaxEvents 60 | Select-Object TimeCreated, Id, LevelDisplayName, Message

Reviews recent Defender activity and detections.

Filtering

Reduce noise without deleting evidence

Time window

Start with the period surrounding the incident, change, outage, logon, or alert.

Event level

Critical and Error events are useful, but informational events often contain the timeline detail you need.

Provider

Filter for Service Control Manager, Security-Auditing, TaskScheduler, DNS Server, or another relevant component.

Event ID

Use Event IDs only after confirming the provider and context.

User / computer

Search event details for a specific account, hostname, source address, process, or service.

Custom View

Create a temporary view that combines selected logs, levels, providers, IDs, or time ranges without deleting anything.

Timeline method

Build the timeline before making conclusions

01

Define the question

Example: Why did RDP stop working, when was an admin account added, or what created a new service?

02

Choose the time range

Use the last known good state and first known bad state to narrow the window.

03

Find anchor events

Start with a known logon, service failure, task execution, Defender alert, reboot, or configuration change.

04

Correlate other logs

Compare System, Security, Application, Task Scheduler, Defender, DNS, DHCP, and role-specific logs around the same timestamp.

05

Preserve evidence

Record important event details and export logs before clearing, restarting, deleting, or changing the evidence source.

06

Remediate and verify

Make the narrowest justified change, then confirm required services and review fresh logs for new errors.

Role-specific logs

Server roles often have better evidence than general logs

DNS Server

Applications and Services Logs → DNS Server

Review service startup, zone loading, query-related errors, and other DNS role activity.

DHCP Server

Applications and Services Logs → Microsoft → Windows → DHCP-Server

Review applicable operational/admin events plus DHCP audit logs for leases and service behavior.

Task Scheduler

Microsoft → Windows → TaskScheduler → Operational

Review task registration, starts, actions, completions, and failures.

Windows Defender

Microsoft → Windows → Windows Defender → Operational

Review protection state, detections, remediation, and configuration events.

Windows Update

Microsoft → Windows → WindowsUpdateClient → Operational

Review update detection, download, installation, and failure evidence.

Group Policy

Microsoft → Windows → GroupPolicy → Operational

Review policy processing when a server setting unexpectedly changes or reverts.

Evidence preservation

Preserve before you remediate

Export the log

Use Event Viewer → Save All Events As to preserve a relevant log as an .evtx file when appropriate.

Save selected events

Preserve the exact event details that support the timeline.

Record server time

Timestamps only help if you know the server's current time and time zone context.

Record event metadata

Capture log name, provider, Event ID, timestamp, computer, user, and important event data.

Do not clear logs

Clearing logs destroys useful history and can remove evidence needed for troubleshooting or investigation.

Preserve before reboot

Some volatile context may change after restart even though persistent event logs remain.

Suspicious patterns

Patterns worth correlating across logs

Many failed logons followed by success

May indicate password guessing, a mistyped credential sequence, or an automated service problem. Correlate account, source, logon type, and timing.

New service near suspicious activity

A 7045 event can reveal service-based persistence, but also legitimate software installation.

Security log cleared

Event 1102 is a high-value investigation signal because evidence was intentionally removed.

New privileged group membership

Unexpected administrative-group changes deserve correlation with the initiating account and nearby logons.

Task activity near a new file

A scheduled task may explain repeated process or script execution.

Policy changes before protection weakens

Audit, firewall, Defender, or user-right changes may explain why later events look different.

Analysis pitfalls

Logging mistakes that lead to bad conclusions

Treating one event as proof

A single event rarely explains intent. Correlate it with surrounding evidence.

Looking only at errors

Informational events often show successful logons, service starts, task launches, and normal transitions that complete the timeline.

Ignoring audit-policy limits

If auditing was not enabled, the expected Security event may never have been recorded.

Assuming every failed logon is an attack

Services, scheduled tasks, expired passwords, old credentials, and ordinary mistakes can create repeated failures.

Clearing logs after fixing the problem

That removes the historical record needed to prove what changed.

Ignoring time differences

Incorrect server time or mismatched time zones can make unrelated events appear connected.

Troubleshooting

Use logs to answer operational questions

Symptom

A required service suddenly stopped.

Check

Review System for Service Control Manager events, Application for dependent software, Security for relevant account changes, Task Scheduler for automated actions, and recent configuration changes.

Symptom

A user cannot log on through RDP.

Check

Review failed/successful logon events, account state, group membership changes, user-right policy changes, TermService/System events, and firewall-related evidence.

Symptom

A server setting keeps reverting.

Check

Review GroupPolicy Operational events, scheduled tasks, services, management agents, and recent administrative logons.

Symptom

The Security log lacks the expected event.

Check

Review effective audit policy, event-log retention, whether the correct server is being checked, and alternative logs that may contain supporting evidence.

Symptom

Events are present but the timeline does not make sense.

Check

Check system time, time zone, reboot events, source-server differences, and whether timestamps from multiple systems are being compared consistently.

Symptom

An application broke after remediation.

Check

Review Application and System logs immediately after the change, then compare with the pre-change baseline and role-specific logs.

Decision cases

Evidence decisions in server context

Hundreds of failed logons appear

Event 4625 repeats for one service account every few minutes.

The pattern could be an attack, but a scheduled task or service using an old password is also plausible.

Response

Correlate logon type, source, service/task activity, recent password changes, and successful logons before changing the account.

A new service was installed

System Event 7045 appears shortly before suspicious behavior.

The event is important but may represent legitimate software installation.

Response

Record the service name, executable path, account, installer context, nearby logons, and installed-software evidence before classifying it.

Security log was cleared

Event 1102 appears during the investigation window.

Evidence was removed, making other logs and remaining artifacts more important.

Response

Preserve remaining logs, identify the account associated with the clearing event when available, and correlate System, Application, Task Scheduler, Defender, and role logs.

DNS stops after a configuration change

Clients fail to resolve names and DNS Server logs show new errors at the same time.

The timing strongly links the outage to the change, but the exact dependency still needs confirmation.

Response

Compare DNS Server, System, and Security events, restore only the incorrect setting, then verify client resolution and watch for fresh errors.

Fictional defensive lab

Build an APP-SRV incident timeline

Step 01

Read the fictional incident

APP-SRV experienced repeated failed logons, a newly installed service, and a scheduled task execution within a 20-minute window. The required application later stopped responding.

Step 02

Set the time window

Use the last known good application check and the first failure to define the investigation period.

Step 03

Collect anchor events

Review Security for logons, System for Service Control Manager events, Task Scheduler Operational for task activity, and Application for the application failure.

Step 04

Build the timeline

Order the events by timestamp and record account, process, service, task, and error details.

Step 05

Preserve evidence

Export the relevant logs or save selected events before disabling a suspicious task or service.

Step 06

Remediate and verify

Make the narrowest justified change, restart only if required, verify the application, and review fresh logs for new failures.

Reflection

Test your log-analysis reasoning

Question 1

Why is one Event ID rarely enough to prove what happened?

Question 2

Why can informational events be as important as errors?

Question 3

How can audit policy affect what appears in the Security log?

Question 4

Why should a 7045 service-install event be investigated but not automatically labeled malicious?

Question 5

What makes Event 1102 important during an investigation?

Question 6

What should be checked after remediation besides whether the original problem disappeared?

Verification checklist

Confirm evidence and server health

01

System, Security, and Application logs remain available.

02

Relevant role-specific logs remain enabled and readable.

03

Important investigation events were preserved before remediation.

04

No logs were cleared as part of routine cleanup.

05

Required services and applications are functioning.

06

No new critical or repeated role-specific errors appeared after remediation.

07

Authentication behavior matches the expected accounts and services.

08

Scheduled-task and service activity now matches the intended configuration.

09

Server time and timeline context are understood.

10

The final evidence timeline and changes are documented.

Competition checklist

Before leaving server-log review

01

Open eventvwr.msc.

02

Review System, Security, and Application.

03

Define a relevant time window.

04

Filter by provider and Event ID when useful.

05

Check TaskScheduler Operational.

06

Check Windows Defender Operational.

07

Check WindowsUpdateClient Operational.

08

Check DNS, DHCP, Group Policy, or other role-specific logs as applicable.

09

Use Get-WinEvent for fast filtering.

10

Correlate at least two evidence sources before concluding.

11

Preserve relevant events before remediation.

12

Verify required server functions and fresh logs afterward.

Next Windows Server lesson

PowerShell for Server Administration

Next, use PowerShell as a defensive administration tool for inventory, verification, filtering, evidence collection, and carefully controlled server changes.

Open Lesson 17 →