# Security Logging: What You Actually Need to Record During an Incident

> The question that actually matters during an incident isn't 'do we have logs' — it's whether the specific logs you have can answer 'what happened, in what order, across which systems' without gaps.

- URL: https://firewallsync.com/posts/security-logging-what-you-actually-need-to-record-during-an-incident/
- Site: FirewallSync (https://firewallsync.com/)
- Topic: Security Operations
- Tags: incident response, process
- Published: 2026-12-01
- Author: FirewallSync Editorial


Most organizations have logs. Far fewer have logs that can actually answer the specific questions an incident response investigation needs answered: what happened, in what order, across which systems, and who or what was responsible. The gap between "we log things" and "we can reconstruct an incident" is where most logging strategies fail, usually because they were designed to support dashboards and monitoring rather than the very different demands of forensic reconstruction.

## Correlation identifiers, propagated consistently

A single user action or attack often touches multiple systems, each producing its own logs with its own timestamps and no inherent way to tie them together. A correlation identifier — generated at the start of a request or session and propagated through every subsequent service call — turns "manually cross-reference timestamps across five different log sources and hope the clocks are synchronized closely enough" into a single query. If your logging doesn't currently propagate a consistent correlation ID across service boundaries, this is one of the highest-leverage changes to make, since it directly determines how fast an investigation can actually piece together a timeline.

## Authorization decisions, not just authentication events

Most logging captures whether a login succeeded or failed. Far fewer systems log *why* a specific authorization check passed or failed for a specific resource — which role, which policy condition, which specific permission grant was evaluated. During an incident, "did this account have legitimate access to this specific resource, and under what policy" is one of the very first questions investigators need answered, and without decision-level authorization logging, answering it means reverse-engineering the access control logic from scratch, under time pressure, rather than querying an existing record.

## Full request and response context for sensitive operations

For any operation with real security significance — authentication, permission changes, data export, administrative actions — log enough context to fully reconstruct what happened: who initiated it, from what source (IP, device, session), what specifically was changed or accessed, and the outcome. A log entry that says only "permission changed" without recording what the permission was, what it changed to, and who made the change provides far less investigative value than one capturing the full before-and-after state of the action.

## Session-level activity, not just authentication events

As covered in detail elsewhere regarding session hijacking specifically, an attacker using a stolen session token produces no failed authentication event at all — they're using an already-valid session. Logging that only captures login success/failure has no visibility into this entire category of compromise. Session-level activity logging — what a given session actually does over its lifetime, not just how it started — is necessary to have any chance of detecting or investigating this pattern after the fact.

## Retention windows that match realistic attacker dwell time, not storage budget comfort

Attackers frequently maintain access for weeks or months between initial compromise and their actual objective — meaning the logs needed to reconstruct an intrusion's full timeline may have already rolled off retention by the time an investigation begins, if retention was set based on storage cost rather than realistic dwell time. Checking your actual retention period against industry data on typical dwell time for your sector, rather than against what feels like a reasonable storage budget, is worth doing explicitly — a shorter retention window than your realistic detection lag means some incidents become permanently unreconstructable by design, regardless of how good the logging schema itself is.

## Immutable or tamper-evident log storage

If an attacker who compromises a system can also modify or delete the logs generated by that compromise, the logs' investigative value collapses exactly when they'd matter most. Shipping logs to a separate, access-restricted logging system in near-real-time — rather than only storing them locally on the systems that generated them — means a compromised system's logs up to the point of compromise remain available for investigation even if the attacker attempts to cover their tracks locally afterward.

## What to explicitly avoid: logging so much that the signal drowns

Capturing every possible data point isn't the goal — a logging strategy that generates overwhelming volume without corresponding structure or indexing makes finding the specific relevant entries during a time-pressured investigation harder, not easier. The goal is deliberate: log what's needed to answer the specific investigative questions above, structured and indexed well enough to actually query quickly, rather than maximizing raw volume and hoping the answer is somewhere in there.

## A practical checklist

- Propagate a consistent correlation identifier across every service a single request or session touches
- Log authorization decisions with the specific policy or role evaluated, not just pass/fail authentication events
- Capture full before-and-after context for sensitive operations, not just that they occurred
- Log session-level activity throughout a session's lifetime, not only the initial authentication event
- Set retention windows based on realistic attacker dwell time for your industry, not storage cost comfort
- Ship logs to a separate, access-restricted system in near-real-time to protect them from tampering by a compromised source system
- Structure and index logs for actual investigative queryability, not just raw volume

The test for whether your logging is adequate isn't "do we have logs" — every organization of any size has some logging. It's "if an incident happened right now, could we actually reconstruct what occurred, in what order, using what we're currently capturing." For most organizations, honestly answering that question surfaces real gaps worth closing before an actual incident forces the discovery.

Image credit: Photo by [Agence Olloweb](https://unsplash.com/photos/qfp4-Ud6Fyg) on Unsplash
