Security
Contains audited security events such as logons, account changes, privilege use, and policy-related activity when the relevant auditing is enabled.
Windows 11 · Lesson 13
Use Windows logs to answer specific questions, troubleshoot failures, build timelines, and support forensic conclusions without drowning in background noise.
The best log analysis begins with a question. Choose the right log, narrow the time window, filter intelligently, and correlate multiple sources before deciding what happened.
Lesson Snapshot
Learning objectives
Explain the purpose of the Security, System, Application, and operational logs in Windows.
Use Event Viewer to filter, search, and correlate events instead of reading logs randomly.
Recognize how event time, source, event ID, user context, computer, and message details support troubleshooting and forensics.
Distinguish a useful event from background noise and avoid treating a single log entry as complete proof.
Use Event Viewer and PowerShell to inspect logs without deleting or altering evidence.
Build a simple timeline that connects account activity, services, tasks, Defender, updates, and remote access.
Core concept
A useful event is one that helps answer a specific question and can be connected to users, services, files, tasks, or other evidence.
Evidence warning
Event logs can show that something occurred, but context and correlation are usually required to explain why and what it means.
Windows log map
Contains audited security events such as logons, account changes, privilege use, and policy-related activity when the relevant auditing is enabled.
Contains events from Windows system components, drivers, services, startup, shutdown, and other operating-system activity.
Contains events written by applications and application components, often useful for troubleshooting required software.
Contains installation and servicing activity related to Windows setup and some update operations.
Can contain events collected from other systems when event forwarding is configured. It may be empty in a normal local practice image.
Contains more specialized operational logs for Windows components and applications, often with richer detail than the basic Windows Logs view.
Event anatomy
Establishes when the event occurred and allows correlation with other activity.
Identifies the Windows component or application that wrote the event.
Identifies a specific event type within that provider. Event IDs are useful only when interpreted with the provider and message.
Information, Warning, Error, Critical, and other levels help prioritize, but severity alone does not determine security significance.
Shows which account or security principal is associated with the event when available.
Identifies the system that generated the event, especially useful when working with forwarded or exported logs.
Provide additional classification that can help group or filter related event types.
The event message often contains paths, account names, services, error codes, process information, or other critical context.
Investigation mindset
Start with a specific question, such as 'Why did RDP fail?' or 'When was this account changed?' instead of scrolling through thousands of events.
Choose the log and provider most likely to answer the question.
Narrow the investigation to the period surrounding the known activity.
Connect multiple events, users, files, services, tasks, or Defender findings rather than relying on one isolated entry.
Confirm that the event actually refers to the user, system, service, or action you think it does.
Event Viewer tools
eventvwr.mscPrimary graphical interface for Windows logs, custom views, filters, event properties, and saved log files.
Event Viewer → Filter Current LogNarrows events by time, level, source, event ID, user, keywords, and other criteria.
Event Viewer → FindSearches the current log for text such as an account name, service, executable, or error code.
Event Viewer → Custom ViewsLets you preserve useful filters so repeated investigation can be faster and more consistent.
PowerShell inspection
Get-WinEvent -LogName System -MaxEvents 50 | Select-Object TimeCreated, Id, LevelDisplayName, ProviderName, MessageProvides a quick read-only view of recent System events.
Get-WinEvent -LogName Security -MaxEvents 50 | Select-Object TimeCreated, Id, ProviderName, MessageShows recent Security events when permissions allow access.
Get-WinEvent -FilterHashtable @{LogName='System'; Id=7036} -MaxEvents 20Illustrates how to narrow one log to a specific event type instead of reading everything.
$start=(Get-Date).AddHours(-2); Get-WinEvent -FilterHashtable @{LogName='System'; StartTime=$start}Limits review to a recent time window when troubleshooting a known change.
Security log examples
Can help establish when an account authenticated successfully and support remote-access or local-logon timelines.
Can reveal repeated authentication failures, stale credentials, misconfiguration, or suspicious access attempts.
Can support investigation of user-management activity when the relevant auditing is enabled.
Can help establish when a user gained or lost privileged group membership.
Can help explain when security or audit settings were modified.
Can provide additional context when the correct auditing is enabled, but these categories may generate significant volume.
System log examples
Useful when a required service fails, changes state, or is unexpectedly restarted.
Can explain why a service failed to start or why a dependency is missing.
Can help connect hardware or networking problems to a driver or device event.
Can establish whether the system restarted or shut down unexpectedly during the timeline.
Can help explain failures surrounding Windows Update or component servicing.
Important when comparing timestamps across evidence sources.
Application log examples
Can explain why required software stopped working after a configuration or update change.
May show degraded operation before a complete failure occurs.
Can connect an app failure to service state, permissions, or configuration.
Some applications log their own user-access or backend problems in the Application log.
Timeline questions
What happened first?
Which user or service account was involved?
Which system component recorded the event?
What changed immediately before the problem or finding?
Did another event occur seconds or minutes later?
Does the same account appear in Security, System, Task Scheduler, Defender, or application evidence?
Does the event message contain a file path, process, service, or error code?
Does the scenario or forensic question give a known time anchor?
Are the system clock and timestamps trustworthy enough for comparison?
What evidence would confirm or challenge the current hypothesis?
Decision cases
Morgan reports that RDP stopped working immediately after firewall changes.
The team has a known time window and a specific service path to investigate.
Response
Correlate firewall changes, Security sign-in events, System service events, and RDP-related operational logs around that time instead of changing random settings.
An administrator account appears that the scenario does not authorize.
Account state alone does not explain when or how it appeared.
Response
Review relevant Security auditing for account and group changes, correlate timestamps with logons and other system activity, and document the timeline before remediation.
A required application service starts and then stops repeatedly.
The service state shows the symptom, while System and Application logs may explain the cause.
Response
Filter around the failure time for the service provider, Service Control Manager, and application events; fix the root cause and verify the service remains stable.
Task Scheduler shows an unknown task ran at 10:42 PM, close to another suspicious event.
One timestamp creates a lead but not proof of cause.
Response
Correlate task history, Security logons, System/Application events, script path evidence, and other timestamps before drawing a conclusion.
Evidence preservation
Clearing a log can remove exactly the evidence needed for troubleshooting or forensic questions.
Capture key event details, timestamps, IDs, provider, account, path, and message before related configuration is modified.
Saving a relevant log or filtered view can preserve evidence for later review in an authorized practice environment.
Maintain a change log so team actions are not confused with pre-existing events.
Fictional defensive lab
Step 01
A Windows 11 workstation has a forensic question about an unexpected administrator account. RDP is required for Morgan, and an unknown scheduled task ran during the same evening.
Step 02
The investigation asks when the account appeared, which activity occurred around that time, and whether the scheduled task is connected.
Step 03
Use the known task run time and account evidence to define a small review window rather than reading an entire day's logs.
Step 04
Review Security account and logon activity, Task Scheduler history, System events, and any relevant script or file timestamps.
Step 05
Record only supported facts in chronological order and separate confirmed events from assumptions.
Step 06
Save the important evidence, document the timeline, then correct the unauthorized account or task only after the evidence has been preserved.
Troubleshooting
Can you narrow by time, provider, event ID, account name, or known error code? Start from the investigation question.
Was the relevant audit category enabled at the time? Are you looking at the correct log? Was the log overwritten or cleared?
What provider generated it? What is the event ID? What other events occurred immediately before and after it?
Are events from the same system and timezone? Did the system clock change? Are you comparing local time with another time format?
Common mistakes
Large Windows logs contain too much background activity for random browsing to be efficient.
A single entry may show that something occurred without explaining why, who caused it, or whether it is suspicious.
The same event ID number can mean different things for different providers.
This destroys useful evidence and can make later forensic questions impossible to answer.
Without a change log, your own hardening work can contaminate the investigation timeline.
Specialized Applications and Services logs may contain the most useful detail for RDP, Task Scheduler, Defender, or another component.
Reflection
Question 1
Why is an Event ID incomplete without its provider and message context?
Question 2
Why should you start with a question instead of browsing logs randomly?
Question 3
What is the value of correlating Security, System, Task Scheduler, and Defender evidence?
Question 4
Why can clearing logs damage a forensic investigation?
Question 5
How can your team's own actions contaminate a timeline?
Question 6
What should be recorded from an important Windows event?
Verification checklist
Confirm the investigation question is answered by evidence rather than assumption.
Record timestamps, provider, event ID, user, and relevant message details.
Correlate at least two evidence sources when making an important forensic conclusion.
Confirm team-generated changes are documented separately.
Do not clear logs needed for later work.
Export relevant evidence when useful in the practice environment.
Check System and Application logs after high-impact configuration changes.
Use Security logs when account, privilege, or authentication activity is relevant.
Review operational logs for component-specific troubleshooting.
Document unresolved questions instead of forcing a conclusion.
Competition checklist
Start with a specific troubleshooting or forensic question.
Choose the most relevant log.
Narrow by time window.
Filter by provider, event ID, user, or keywords.
Read the full event message.
Record important timestamps and context.
Correlate with at least one other source.
Separate confirmed facts from hypotheses.
Preserve relevant logs and notes.
Do not clear evidence during cleanup.
Re-check logs after major changes for new errors.
Next Windows lesson
Next, learn how to use PowerShell for fast defensive inventory, filtering, verification, and evidence-aware administration without turning scripts into blind bulk changes.