#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:
$ 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.77Notice 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:
- Time (UTC): Align every log source to UTC and allow a small tolerance for minor clock drift.
- IP addresses: Trace an external IP to an internal host, then trace that internal host IP forward to its next target.
- Usernames: Normalize formats such as
CORP\deployordeploy@lab.localon Windows withdeployon Linux. - Artifacts: Match script names, file hashes, or command arguments observed on both sides.
#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
4624as an interactive login: Failing to checkLogonTypecauses analysts to confuse routine Type3SMB connections with Type10RDP sessions. - Matching usernames without format normalization: Searching literally for
CORP\alicein Linuxauth.logmissesalice, and vice versa. - Ignoring failed logons before a success: Checking only
Acceptedor4624events hides the preceding4625orFailed passwordburst that identifies the source IP and attack method.
#Summary
- Correlating Windows Event Logs (
4624,4625,4672,4688,1102) with Linuxauth.logorjournalctlreveals cross-platform pivots that single-host reviews miss. - Always check
LogonTypeon Windows4624events to distinguish network shares (3) from interactive (2) and RDP (10) logons. - Use
journalctl --utcandjqto 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.