Skip to content
compliancebase
ISO 27001A.8 — Logging

A.8.15

Logging

ISO 27001 · ISO/IEC 27001:2022 · Last verified July 2026

Objective

Produce, store, protect, and analyse logs that record activities, exceptions, faults, and other relevant events.

Points of focus

  • Authentication, authorization, and admin-plane events are captured for every production system
  • Logs are shipped to a centralized, append-only store separate from the source system
  • Access to view and, especially, to modify or delete logs is restricted and itself logged
  • Retention period is defined per log category and matches incident-response and compliance needs
  • Clock synchronization (NTP) keeps timestamps consistent across systems for correlation

Implementation notes

Route logs from every layer that matters for security investigations — identity provider sign-ins, cloud API calls (CloudTrail/Activity Log), Kubernetes audit logs, database audit logs, application-level admin actions, and WAF/network events — into one centralized platform rather than leaving them scattered across each service's native retention. Separate the identity that writes logs from the identity that can delete or modify them; use write-once storage or a dedicated log-shipping service account with no delete permission, and require a documented break-glass process for the rare legitimate deletion (e.g. a legal hold expiring). Define retention per category: security-relevant logs (auth, admin actions, access to customer data) typically need 90 days to a year of hot retention with longer cold storage, while high-volume debug logs can retire faster. Include correlation identifiers (request ID, user ID, session ID) consistently across services so an investigator can reconstruct a single user session across the application, database, and infrastructure layers without manual log-stitching. Keep clocks synchronized via NTP across all hosts — a five-minute clock skew during a real investigation can make correlating events across systems effectively impossible, and it's a trivial, low-cost control to get right.

Audit tip: Ask to see who currently holds delete or write-suppress permissions on the log pipeline itself, then pull a real log entry for a privileged action (e.g. an IAM policy change) and show its timestamp lines up with the change ticket. Auditors weight log integrity controls more heavily than log volume.

Evidence auditors typically request:

  • Centralized logging platform configuration (Datadog, Splunk, CloudWatch, or ELK) showing sources ingested
  • IAM policy restricting log-store write/delete permissions to a break-glass role only
  • Sample of authentication and privileged-action logs covering a recent 30-day window
  • Log retention configuration screenshot matching the documented retention schedule
  • NTP/clock-sync configuration or cloud provider default confirming consistent timestamps

Common gaps

  • Application logs are captured but authentication events from the identity provider or database audit logs are never forwarded into the same pipeline, leaving blind spots during investigations
  • Engineers with production database access also hold delete permissions on the logging platform, so a compromised or malicious insider could erase their own trail
  • Retention is set to the logging vendor's default (often 15-30 days) rather than a deliberate period tied to the incident-response and legal-hold needs of the business

Cross-Framework Mapping

FrameworkRequirementImplementation note
ISO 27001A.8.15This control
SOC 2CC7.2Related Trust Services Criteria themes — map in your crosswalk; not identical requirements.
GDPRArticle 32Related GDPR articles for personal-data security or processor themes — not a compliance claim.
HIPAA164.312(b)Related HIPAA Security Rule citations when PHI is in scope — SoA does not replace BAAs.

Primary sources

Frequently Asked Questions

Generally yes for debugging, but logs containing customer PII should be masked or access-scoped, and write/delete permissions should be far more restricted than read permissions.

There's no single ISO-mandated number; 90 days to 1 year of readily searchable retention is common, tied to how long your incident-response process needs to look back plus any contractual or legal requirements.

No, but it changes where the logs live — make sure function invocation logs, API gateway access logs, and managed-service audit trails (e.g. RDS audit logs) all flow into the same central pipeline rather than staying siloed in each provider's console.

A.8.15 is about producing and protecting the log data itself; A.8.16 is about actively watching those logs for anomalies and acting on what you find. You can pass one without the other.

Framework versions referenced in this page:

  • ISO/IEC 27001ISO/IEC 27001:2022

Last verified: July 2026 · Primary sources linked above