NCSC Introduction to Logging is guidance from the UK National Cyber Security Centre on logging for security purposes. It helps organisations decide what to record so they can detect attacks and investigate incidents. Practitioners use it to tie log sources to the threats they face, and should also protect logs from tampering and set retention that suits investigations.
What NCSC guidance on logging is for
Logging guidance is not just about keeping records. It defines which events matter for security monitoring, how much context those events need, and how logs should support both detection and investigation without overwhelming operations or creating blind spots.
For practitioners, the key idea is that logs are evidence as well as telemetry. If a control, identity, application, or infrastructure event cannot be trusted later, then the organisation loses much of the value of logging even if collection is technically working.
What to log and why it matters
Good logging starts with deciding which actions are meaningful to security outcomes. That usually includes authentication events, privilege changes, administrative actions, configuration changes, access to sensitive data, and security control activity. The point is to capture enough detail to reconstruct attack paths and explain what happened during an incident.
Log design is always a trade-off. Too little detail leaves investigators guessing; too much detail can drown teams in noise, increase storage cost, and expose sensitive information in the logs themselves. The right balance depends on the threats the organisation expects and the systems it must be able to defend.
Well-chosen log sources also make it easier to correlate events across systems. That is especially important when a single attacker action is only visible when several records are joined together, such as a failed login followed by a successful login and then a sensitive action from a new source.
How to make logs trustworthy and usable
Logging only helps if the records can be trusted. Organisations need controls that reduce tampering, preserve integrity, and keep time stamps consistent enough to support investigation. Retention also matters: if logs are deleted too soon, the organisation may lose the evidence needed to understand slow-burn attacks or meet legal and regulatory obligations.
Storage architecture should support both availability and review. Hot logs help with active monitoring, while retained archives support forensic analysis and post-incident review. The retention period should reflect investigation needs, business requirements, and any mandated minimums, rather than being set arbitrarily.
For a practical starting point, many teams map their logging policy to broader log management principles such as collection, forwarding, retention, integrity, and review. The Log Management and Retention Guide is useful where the question moves from "what should we log?" to "how do we keep those logs useful over time?"
Using logging to support detection and incident response
Logging becomes operationally valuable when it is tied to detection use cases. Security teams should think in terms of attack narratives, not just event volumes. A log source is useful when it helps spot suspicious behaviour, confirm compromise, or narrow the blast radius after an incident.
That is why logging guidance often sits close to threat-led monitoring. Different environments will prioritise different signals, but the aim is consistent: create enough visibility to distinguish normal administration from abuse, and to preserve a defensible trail when activity must be reviewed later.
Authoritative sources matter here too. The NCSC’s broader guidance library helps organisations connect logging choices to operational security decisions, while keeping the policy rooted in current practice and not just in tool defaults. NCSC UK Advice and Guidance is the best place to start when aligning logging with the rest of a UK security programme.
Risk and Threat Considerations
Weak logging creates an asymmetric risk: attackers benefit from low visibility, while defenders inherit uncertainty. If logs are incomplete, unprotected, or retained for too short a period, security teams may miss compromise, lose forensic evidence, or fail to prove the scope of an incident.
Failure mechanism: Adversaries often exploit missing coverage, excessive log noise, poor time synchronisation, or insufficient integrity controls to hide initial access, privilege escalation, lateral movement, or data access. When logs can be altered or discarded, the defender loses both detection signal and investigative evidence.
Impact: The result is slower detection, weaker incident reconstruction, greater recovery cost, and a higher chance that sensitive access or administrative abuse goes unnoticed until after material damage has occurred.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | AU-2 — Event Logging | Logging guidance directly concerns what events to record for security monitoring. |
| AU-9 — Protection of Audit Information | The term explicitly depends on keeping logs trustworthy and tamper-resistant. | |
| AU-11 — Audit Record Retention | Retention is central to preserving logs for later investigation and review. | |
| Recommendation — Define and capture the event types needed for detection and incident investigation. Protect audit records against alteration, deletion, and unauthorized disclosure. Set retention periods that preserve evidence for incident response and compliance. | ||
| CIS Controls v8 | CIS-8 — Audit Log Management | The subject is fundamentally about managing logs for security visibility and response. |
| Recommendation — Centralize, retain, and review logs that support detection and response. | ||
Practitioner Guidance
What to watch for: Treat logging as a design decision, not a storage decision. Decide which events are required for detection and investigation, then validate that the same events remain available, protected, and reviewable throughout their retention period.
Governance implication: Ownership should be explicit, because logging fails when no one is responsible for source coverage, retention rules, integrity controls, or review thresholds. The practical question is not whether logs exist, but whether they still answer the questions investigators will ask later.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org