Skip to main content
Correlating Windows Event Logs & Linux Auth/Syslog
Lesson 3 of 13

Correlating Windows Event Logs & Linux Auth/Syslog

Learn how to inspect high-value Windows Event IDs and Linux journal or auth logs, and correlate timestamps, IPs, and usernames across both systems to reconstruct an attack timeline.

Intermediate 28 min Blue Team / SOC

Learning objectives

  • Identify key Windows Security Event IDs and Logon Types in Event Viewer or exported logs
  • Query Linux authentication and service activity using auth logs and journalctl
  • Filter and extract structured JSON log records with jq for fast triage
  • Correlate events across Windows and Linux hosts using UTC timestamps, IP addresses, and identities

Recommended first: Blue Team Basics, SOC Architecture & Analyst DutiesSecurity Monitoring & Log Collection Pipelines

#Why this matters

In the previous lesson, you learned how pipelines ship logs from endpoints to central storage. Real networks mix operating systems: staff sign into Windows workstations, authenticate to Active Directory, and administer Linux application servers over SSH. Attackers exploit that boundary by landing on one host and pivoting to another.

If you inspect Windows Event Viewer in isolation or grep Linux logs alone, you only see half the chain. Correlating events across both operating systems turns disconnected alerts into a clear timeline from initial entry to lateral movement.

#Windows Event Logs: what analysts check first

Windows separates records into channels such as Security, System, Application, and operational channels like Microsoft-Windows-Sysmon/Operational. In Event Viewer, analysts filter by Event ID and time window, and switch to the Details XML view when they need exact field names such as TargetUserName, IpAddress, and LogonType.

Event ID Channel Meaning Key fields to inspect
4624 Security Successful logon TargetUserName, LogonType, IpAddress
4625 Security Failed logon TargetUserName, IpAddress, Status
4672 Security Special privileges assigned to new logon SubjectUserName, PrivilegeList
4688 Security New process created (if enabled) NewProcessName, CommandLine, ParentProcessName
4720 Security User account created TargetUserName, SubjectUserName
1102 Security Audit log cleared SubjectUserName, ClientProcessId

The LogonType field inside Event ID 4624 prevents common misreadings:

  • Type 2: Interactive logon at a local keyboard.
  • Type 3: Network logon, such as accessing an SMB file share.
  • Type 10: RemoteInteractive logon over Remote Desktop Protocol (RDP).

Seeing Event ID 4624 with LogonType 10 followed seconds later by 4672 tells you an administrator session opened over RDP, not a routine file share request.

#Linux auth logs, syslog, and journalctl

On Linux, authentication events from sshd, sudo, and PAM are written to /var/log/auth.log on Debian or Ubuntu systems and /var/log/secure on RHEL-based distributions, while general daemon output goes to /var/log/syslog or /var/log/messages. Systems running systemd also record structured metadata in the binary journal, which you query with journalctl.

Use journalctl to scope by service unit and UTC time window, and jq when logs are exported or forwarded as JSON lines:

Filtering SSH logs with journalctl and JSON exports with jq
$ journalctl -u ssh --since "2026-10-12 02:10:00" --until "2026-10-12 02:20:00" --utc --no-pager
Oct 12 02:13:44 db01 sshd[4102]: Accepted publickey for deploy from 10.10.10.15 port 51822 ssh2
Oct 12 02:14:18 db01 sudo[4119]:   deploy : TTY=pts/0 ; PWD=/home/deploy ; USER=root ; COMMAND=/usr/bin/id
$ jq -r 'select(.host == "jump01.lab.local" and (.event_id == 4624 or .event_id == 4625)) | "\(.timestamp) id=\(.event_id) type=\(.logon_type) user=\(.user) ip=\(.src_ip)"' win_events.jsonl
2026-10-12T02:10:52Z id=4625 type=10 user=deploy ip=203.0.113.77
2026-10-12T02:11:05Z id=4624 type=10 user=deploy ip=203.0.113.77

Notice how --utc in journalctl and ISO-8601 Z timestamps in win_events.jsonl put both operating systems on the same clock before you compare them.

#Pivoting and correlating across hosts

To link events across Windows and Linux, pivot on shared keys rather than guessing from one host at a time:

  1. Time (UTC): Align every log source to UTC and allow a small tolerance for minor clock drift.
  2. IP addresses: Trace an external IP to an internal host, then trace that internal host IP forward to its next target.
  3. Usernames: Normalize formats such as CORP\deploy or deploy@lab.local on Windows with deploy on Linux.
  4. Artifacts: Match script names, file hashes, or command arguments observed on both sides.
Cross-platform pivot from Windows jump host to Linux DBCross-platform pivot from Windows jump host to Linux DBAttackerjump01.lab.localdb01.lab.local4625 failed RDP x14 from 203.0.113.774624 Type 10 logon as CORP\deploy (02:11:05Z)SSH Accepted publickey deploy from 10.10.10.15 (02:13:44Z)sudo USER=root COMMAND=/usr/bin/id (02:14:18Z)Correlating 10.10.10.15 and UTC timestamps links both compromises

#Common mistakes

  • Comparing mixed timezones: Windows Event Viewer displays timestamps in the viewer's local timezone by default, while Linux collectors often export UTC; always normalize to UTC before building a timeline.
  • Treating every 4624 as an interactive login: Failing to check LogonType causes analysts to confuse routine Type 3 SMB connections with Type 10 RDP sessions.
  • Matching usernames without format normalization: Searching literally for CORP\alice in Linux auth.log misses alice, and vice versa.
  • Ignoring failed logons before a success: Checking only Accepted or 4624 events hides the preceding 4625 or Failed password burst that identifies the source IP and attack method.

#Summary

  • Correlating Windows Event Logs (4624, 4625, 4672, 4688, 1102) with Linux auth.log or journalctl reveals cross-platform pivots that single-host reviews miss.
  • Always check LogonType on Windows 4624 events to distinguish network shares (3) from interactive (2) and RDP (10) logons.
  • Use journalctl --utc and jq to filter, format, and align JSON log exports on a shared UTC timeline.
  • Pivot systematically on UTC timestamps, internal and external IP addresses, normalized usernames, and shared command artifacts.

Knowledge check

Sign in to take the test, complete lessons and save your progress. Log in

Practice: test your knowledge