Join our Newsletter — 33% off our NHI Course
Home› FAQ› Governance, Ownership & Risk› What are common mistakes with logging?
Governance, Ownership & Risk

What are common mistakes with logging?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 19, 2026 Domain: Governance, Ownership & Risk

Common logging mistakes are recording too little to investigate incidents, or too much sensitive data that creates new exposure. Teams also fail when logs are inconsistent, time stamps are unreliable, retention is too short, or access is not restricted. Logging should support detection, reconstruction, and audit without exposing secrets or personal data unnecessarily.

What logging mistakes create the biggest investigation gaps?

The most damaging logging mistake is under-logging the events you need to reconstruct what happened. If authentication events, privilege changes, administrative actions, and key application flows are missing, incident responders lose the timeline and can only infer intent from fragments. The result is slower containment, weaker root-cause analysis, and less defensible audit evidence.

Equally important is consistency. Mixed formats, missing field names, and unsynchronised time sources make it hard to correlate events across systems, which turns a usable log stream into isolated records.

Good logging is not about volume alone. It is about recording the right events with enough context to support detection, reconstruction, and review without drowning analysts in noise.

How do logs accidentally create new exposure?

Logging becomes a security problem when it captures secrets, tokens, session data, personal data, or other sensitive payloads that were never meant to leave the application path. If those values land in central logs, backup systems, or analyst tools, the logging platform itself becomes a high-value target. This is why many teams treat secrets exposure as a logging design issue as much as a secrets-management one.

Retention can also create exposure. Keeping logs longer than necessary expands the blast radius of a later compromise, while keeping them too briefly can erase evidence before detection or legal review. The right balance depends on operational need, regulatory obligations, and the sensitivity of what is being recorded.

Access control matters just as much as content. If broad groups can search or export logs, the logging system can reveal credentials, customer data, system paths, or incident indicators to people who do not need them.

What makes logging unreliable in practice?

Unreliable timestamps are a common failure mode because they undermine event ordering. Without synchronized clocks, even accurate logs can point investigators in the wrong direction when they try to establish sequence, dwell time, or causality. That problem gets worse across distributed systems, cloud services, and hybrid environments.

Another frequent issue is uneven coverage. Some services log richly while others log almost nothing, so the organisation gets partial visibility that looks better than it is. Teams often discover this only after an incident, when they realise the missing source was the one that mattered most.

Retention, format, and access should therefore be designed together. A log stream that is technically present but inconsistent, incomplete, or loosely governed is often only marginally better than no log stream at all.

Risk and Threat Considerations

Logging mistakes matter because they can create both blind spots and new attack surface. Insufficient logs weaken detection and incident response, while overexposed logs can leak credentials, tokens, or personal data into a system that was assumed to be defensive. Log tampering, log deletion, and log flooding are also familiar ways attackers try to hide activity or overwhelm defenders.

Failure mechanism: When log coverage is incomplete or timestamps are unreliable, the organisation cannot reliably reconstruct attacker activity, prove scope, or correlate actions across systems. When logs contain sensitive data and are broadly accessible, compromise of the logging platform can expose the very material defenders hoped to protect.

Impact: Investigations take longer, containment decisions become less certain, auditability weakens, and a logging system can become a secondary breach path rather than a control.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

CIS Controls v8 and NIST SP 800-53 Rev 5 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
CIS Controls v8CIS-8 — Audit Log ManagementLogging completeness, retention, and review are core audit-log controls.
Recommendation — Centralize log collection, protect integrity, and review logs for actionable events.
NIST SP 800-53 Rev 5AU-2 — Event LoggingThis subject is about which events should be logged for investigation and audit.
AU-9 — Protection of Audit InformationSensitive logs need access restriction and integrity protection to avoid new exposure.
AU-11 — Audit Record RetentionRetention length is a direct logging mistake area in this question.
Recommendation — Define and log security-relevant events needed for reconstruction and detection. Restrict access to logs and protect them against alteration and disclosure. Set retention to support investigations and compliance without excessive exposure.
ISO/IEC 27001:2022A.8.15 — LoggingAnnex A logging control addresses collection, review, and event recording discipline.
Recommendation — Implement logging that records security events and supports investigation.

Practitioner Guidance

What to verify: Confirm that logs capture the events needed for detection and reconstruction, especially authentication, privilege changes, administrative actions, and security-relevant application flows. Also verify that log fields do not accidentally store secrets, session material, or unnecessary personal data.

What good looks like: A defensible logging design has consistent schemas, synchronized time, role-based access, explicit retention rules, and reviewed redaction or masking where sensitive values could appear. If analysts cannot correlate events quickly during a tabletop or incident review, the logging model is not mature enough.

Common mistake: Treating logging as an output problem instead of a control problem. The usual failure is either too little visibility for response or too much sensitive detail for safety, with no one owning the trade-off.

Practitioner takeaway: The best logging strategy is the one that preserves investigative value while minimizing the chance that logs themselves become a source of compromise or confusion.

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.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 19, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org