A security monitoring program is only as useful as the events it can actually see. Teams often discover logging gaps at the worst possible moment: during an investigation, when a missing authentication event, endpoint record, cloud audit entry, or network observation prevents them from answering a basic question. Logging-gap reviews move that discovery earlier.
Define what you need to observe
Start with security questions rather than products. Can you identify successful and failed authentication? Privilege changes? Administrative actions? Security-control changes? New services or persistence mechanisms? Important data access? Network connections that matter to the environment? Endpoint detections? Cloud control-plane activity?
The answers depend on architecture and risk. A small web application and an operational technology environment do not need identical telemetry. The objective is to identify the events necessary to detect, investigate, contain, recover from, and learn from plausible security incidents.
Map the path from event to analyst
For every important source, document where the event originates, how it is transported, where it is normalised or transformed, where it is stored, how long it remains available, and which detection or investigation process uses it. A source can be enabled yet effectively invisible because a collector is misconfigured, a parser drops fields, timestamps are inconsistent, retention is too short, or analysts cannot query the destination.
Test with known events
Configuration review alone is not enough. Generate safe, controlled test events and confirm that they appear where analysts expect them. For example, create a permitted test authentication failure, make an approved administrative change in a test context, or trigger a documented security test event. Record the expected time and compare it with the collected evidence.
NCSC guidance specifically recommends validating that logging continues to work as technology changes. It suggests automated alerts when messages stop arriving centrally or generating test events that should be captured and then confirming their arrival. This turns logging assurance into a repeatable control rather than an assumption.
Watch for disappearing telemetry
A sudden reduction in event volume can be as important as a spike. Collectors fail, agents stop, credentials expire, APIs change, storage fills, network paths break, and configuration deployments can disable sources. Establish a baseline for expected source health and alert when a critical source becomes silent or materially changes behaviour.
Protect integrity and access
Logs are useful only if investigators can reasonably trust them. Restrict who can alter collection settings and stored records. Protect transport where appropriate. Synchronise time across systems. Record administrative changes to the logging platform. Keep security telemetry available to the people responsible for detection and response without giving unnecessarily broad access.
NCSC guidance for security logging states that logs should be treated as sensitive data. Its operational-technology guidance also emphasises secure transmission and storage so logging information retains integrity and can be attributed to known assets.
Prioritise gaps by investigative consequence
Not every missing field deserves the same urgency. Prioritise blind spots that prevent teams from detecting or reconstructing high-impact scenarios. A missing cosmetic field is different from having no record of privileged access. Consider likelihood, business importance, attacker value, regulatory requirements, and whether another independent source can answer the same question.
Keep retention tied to purpose
Longer is not automatically better. Retention should reflect investigation needs, threat patterns, legal obligations, privacy requirements, storage constraints, and organisational policy. Ensure that the period is long enough for realistic detection and investigation while avoiding indefinite collection without a defined purpose.
Include logging in system change
New SaaS applications, identity providers, network segments, cloud services, endpoints, and security controls should not enter production without considering telemetry. Ask what security events the component produces, whether they are enabled, where they go, how they are protected, and how the monitoring team will know if collection fails.
Know the boundary
A logging review improves operational visibility, but it does not establish compliance with a particular regulation, contractual requirement, evidentiary standard, or sector-specific retention rule. Those questions require review against the applicable obligations and, where necessary, qualified legal, privacy, compliance, or regulatory expertise.
Practical logging-gap review
- List security questions your investigations must answer.
- Map each question to one or more event sources.
- Trace events from origin through collection and storage.
- Generate safe test events and confirm arrival.
- Monitor critical sources for unexpected silence.
- Validate timestamps, identifiers, and important fields.
- Protect log integrity and administrative access.
- Review retention against operational and legal needs.
- Track gaps with an owner, priority, and target resolution.
- Repeat the review after material technology changes.
Related knowledge
Continue with Cybersecurity Recovery Validation, Security Alert Handoffs, Cybersecurity Incident Evidence, and Incident Containment Decisions.
References
- UK NCSC: Introduction to logging for security purposes
- UK NCSC: Security events should be logged and monitored
- UK NCSC: Log and audit within the RF network
This is general cybersecurity guidance. Logging and retention may be subject to legal, privacy, regulatory, contractual, evidentiary, or sector-specific requirements that require qualified review.