01 / 20

Log Interpretation
& Correlation

Learn to read system log fields, decode timestamps, and connect events across multiple sources to detect security incidents.

Cyber Security

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

2024-11-15T09:23:47Z firewall-01 WARNING Blocked inbound connection from 203.0.113.42:4444 to 10.0.1.5:443 proto=TCP rule=DENY_EXTERNAL
Timestamp
When the event occurred, in ISO 8601 or UTC format
Source
Which device or service generated the log entry
Severity
How critical: DEBUG, INFO, WARNING, ERROR, CRITICAL
Message
The event details: IPs, ports, actions, and outcomes

Why Logs Matter in Cyber Security

1
Incident Detection: Logs reveal anomalous behavior like repeated failed logins or unusual data transfers before damage occurs.
2
Forensic Analysis: After a breach, logs provide the evidence trail to reconstruct the attack timeline.
3
Compliance: Regulations like HIPAA and PCI-DSS require organizations to maintain and review audit logs.
4
Threat Intelligence: Patterns in logs feed into rules and alerts for future attack prevention.

Core Log Fields Explained

LOG ENTRY Structured Event Record TIMESTAMP When? SOURCE Which device? SEVERITY How critical? MESSAGE What happened?

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.

ISO 8601
2024-11-15T09:23:47Z
The "Z" means UTC (Zulu time)
Unix Epoch
1731661427
Seconds since Jan 1, 1970
Syslog
Nov 15 09:23:47
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.

Firewall Log Network events Auth Log Login events App Log Application events CORRELATION ENGINE SECURITY ALERT

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

1
DEBUG: Detailed diagnostic information. Only useful during development or deep troubleshooting.
2
INFO: Normal operational events. User logged in successfully, service started.
3
WARNING: Something unusual that may require attention. Disk usage at 85%, failed login attempt.
4
ERROR: A failure that prevented an action. Service crashed, connection refused.
5
CRITICAL: System-level emergency requiring immediate response. Data breach detected, root access compromised.

How to Correlate Events

1
Normalize timestamps: Convert all log timestamps to UTC so events from different time zones align correctly.
2
Identify shared fields: Look for common identifiers: source IP, user account, session ID, or hostname.
3
Build a timeline: Sort events chronologically. Arrange entries across sources into a single ordered sequence.
4
Identify patterns: Look for suspicious sequences: failed logins followed by success, privilege escalation after lateral movement.
5
Document findings: Record the correlated events, the timeline, and your conclusions for the incident report.

Example 1: Reading a Log Entry

2024-11-15T14:05:12Z web-server-03 WARNING Failed authentication for user admin from 198.51.100.77 port 22 ssh2
Timestamp
Nov 15, 2024 at 14:05:12 UTC
Source
web-server-03 (the target machine)
Severity
WARNING: unusual but not yet critical
Key Details
SSH login attempt for "admin" from external IP 198.51.100.77

Example 2: Correlating Across Sources

14:05:12
Firewall: Inbound SSH allowed
198.51.100.77 → 10.0.1.20:22 (ALLOW)
14:05:12
Auth Log: Failed login "admin"
From 198.51.100.77 on web-server-03
14:05:14
Auth Log: Failed login "admin"
Second attempt, same source IP
14:05:15
Auth Log: Successful login "admin"
Third attempt succeeded: possible brute force
14:05:22
App Log: Database export initiated
User "admin" exported customer_data.sql (2.3 GB)

Example 3: Time Zone Trap

Firewall (UTC):
2024-11-15T18:30:00Z DENY outbound to 185.220.101.1 (known C2 server)
Endpoint (EST, UTC-5):
Nov 15 13:29:55 Process svchost_update.exe started by user jsmith

Common Mistakes

✕ Ignoring Time Zones
Comparing timestamps from different sources without converting to UTC first. A 3-hour offset can hide the entire attack sequence.
✕ Single-Source Analysis
Looking at only one log source. Attackers move laterally, so the full picture spans firewall, auth, endpoint, and application logs.
✕ Ignoring "Normal" Events
Dismissing INFO-level entries. A successful login at 3 AM is INFO-level but highly suspicious. Context matters more than severity.

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?

2024-11-15T09:23:47Z firewall-01 WARNING ...

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

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?