← All guides
Security Policy9 min read8 June 2026

Log Management & Monitoring Policy for SaaS: SOC 2 CC7.2, ISO 27001 A.8.15, and SIEM Implementation (2026)

SOC 2 CC7.2 and ISO 27001 A.8.15/A.8.16 require documented log management and monitoring controls. Here's what your policy must cover, how to configure SIEM alerting, and the evidence auditors need.

Why log management is audit-critical

Log management is one of the most heavily tested compliance areas at SOC 2 and ISO 27001 audits — and one where SaaS companies routinely fall short. SOC 2 CC7.2 is sampled in every Type II report. ISO 27001 A.8.15 (Logging) is always inspected. If your logs are inconsistent, missing, or stored where the application team can edit them, you fail.

Beyond compliance, logs are the foundation of incident detection. Without comprehensive logging, you cannot detect breaches in progress, cannot investigate after the fact, and cannot produce the audit trail regulators expect. The Verizon DBIR consistently shows that organisations with comprehensive logging detect breaches in days; those without detect them in months — if at all.

What SOC 2 CC7.2 requires

SOC 2 Common Criteria CC7.2 (System Monitoring) requires the entity to:

  • Monitor system components and the operation of those components for anomalies indicative of malicious acts, natural disasters, and errors
  • Configure detection policies and procedures that identify the source and circumstances of an anomaly
  • Implement procedures to analyse the impact of identified anomalies
  • Communicate detected anomalies to appropriate personnel for follow-up

CC7.2 is closely linked to CC7.1 (Threat & Vulnerability Management). The control narrative auditors expect to see covers: what is logged, how alerts are configured, who reviews them, escalation to incident response, and evidence that this happens consistently — not just on audit days.

ISO 27001 A.8.15, A.8.16, A.8.17 breakdown

ISO 27001:2022 splits logging across three Annex A controls:

ControlRequirementAudit Focus
A.8.15 LoggingLogs of user activities, exceptions, faults, and information security events shall be produced, kept, and regularly reviewedLog source inventory; sample log review records
A.8.16 Monitoring activitiesNetworks, systems, and applications shall be monitored for anomalous behaviour and appropriate actions takenSIEM rules; alert response; incident integration
A.8.17 Clock synchronisationClocks of all relevant information processing systems shall be synchronised to approved reference time sourcesNTP configuration on all systems; drift monitoring

What must be logged per A.8.15:

  • User activities (logins, logouts, privileged actions)
  • Exceptions (authentication failures, access denials)
  • Faults (system errors, crashes)
  • Information security events (alerts, IDS detections, malware findings)
  • Use of administrative privileges
  • System changes (config, software installs, user/role changes)

A.8.17 (Clock Sync) is silently failed often. Auditors will sample logs from 2–3 systems and check that timestamps align within seconds. If your application server says 14:23:01 UTC and your firewall says 14:25:47 UTC for the same event, you cannot correlate. Run NTP on every system, monitor drift, and document the reference source.

Log retention by regulation

FrameworkMinimum RetentionSpecific Requirement
SOC 2No explicit period; align with policy commitments12 months is standard practice and supports Type II reporting periods
ISO 27001 A.8.15Determined by risk assessment; "appropriate" retentionMost certified orgs use 12 months; longer for security events
HIPAA §164.312(b) + §164.316(b)(2)6 years for documentation of audit controlsLogs themselves: organisation-defined but must support §164.312(b) audit purpose
PCI DSS Req 10.5.112 months total; 3 months immediately accessibleApplies to CDE logs specifically
GDPR Art. 32Proportionate to security purpose; not excessiveLogs containing personal data should be minimised and time-limited
NIS2 Art. 21Implementation defined by national authorityGenerally aligned with ISO 27001 expectations
FedRAMP / NIST SP 800-921 year online, 3 years archival (moderate baseline)AU-11 control specifies retention

Pragmatic default for SaaS: 12 months hot/queryable, archive beyond that. Adjust upward for HIPAA (ePHI access logs) and downward for low-risk operational logs that don't carry compliance weight.

8 mandatory log sources for SaaS

At a minimum, your SIEM must ingest:

  1. Authentication & access logs — SSO/IdP (Okta, Auth0, Google), MFA events, admin console logins. Capture: user, IP, MFA result, geolocation, success/failure, user agent.
  2. Cloud infrastructure — AWS CloudTrail / GCP Audit Logs / Azure Activity Logs. Capture every IAM, configuration, and resource change.
  3. Database access — query type, user, table, row counts, schema changes. Privileged queries flagged.
  4. Admin/privileged actions — sudo, role changes, account creation/deletion, permission grants.
  5. Network logs — VPC flow logs, WAF rule matches, firewall denies, load balancer access logs.
  6. CI/CD pipeline — pipeline runs, deployment events, secret access, merges.
  7. Application/API — request metadata, errors (sanitised), API key usage, response codes.
  8. Third-party integrations — OAuth grants, webhook events, SaaS admin actions (e.g. Slack/GitHub admin events).

If a log source isn't in your SIEM, you cannot alert on it. Audit gap.

SIEM alerting threshold guidance

EventThresholdSeverityWhy It Matters
Failed logins (brute force)10 fails / 5 min / user; 50 fails/min system-wideHighAccount compromise attempt
Privilege escalationAny sudo/role-assume to admin outside change windowCriticalUnauthorised admin access
New privileged user createdAny new admin/root userCriticalPersistent backdoor; common post-compromise step
Admin activity off-hoursAdmin console 22:00–06:00 or weekendHighLikely compromised account if not pre-approved
Unusual data export>3x baseline OR >10K records single query (non-batch)HighExfiltration in progress
Firewall / security group changeAny change outside change windowHighAttacker opening egress / lateral movement path
Outbound data transfer anomaly>5x baseline to non-approved destinationsCriticalActive exfiltration
Logging config changeAny modification to log forwarding / retention / SIEM rulesCriticalAttacker covering tracks

Tune ruthlessly. Alerts no one looks at are worse than no alerts — they create alert fatigue and miss the real signal.

Log integrity controls

Logs are only useful if you can trust them. Required controls:

  • Immutable / append-only storage — S3 Object Lock, Azure immutable blob, or WORM storage. An attacker with admin on the app should not be able to delete log evidence.
  • Separation of log access from application access — the team that operates the app does not have delete rights on the log archive. Security team or audit role owns log retention.
  • Clock synchronisation — NTP from authoritative source on every system; max drift <1 second; drift monitored and alerted.
  • Tampering detection — alerts on log gap (no events received from a critical source for X minutes), on logging config changes, on storage policy modifications.
  • Separate environment — ship logs to a separate AWS account / GCP project / Azure subscription from the production environment. Compromise of production should not destroy the audit trail.

PCI DSS Req 10 specifics

If you process cardholder data, PCI DSS Req 10 has hard rules:

  • 10.2: Log all access to the cardholder data environment (CDE) including individual user access, root/admin actions, audit log access, invalid logical access attempts, identification & authentication changes.
  • 10.5.1: Retain audit log history for at least 12 months, with at least the last 3 months immediately available for analysis.
  • 10.4: Real-time review of CDE logs; daily review of security event logs.
  • 10.3: Secure audit logs to prevent unauthorised modifications.

The 3-months-immediately-accessible requirement trips up many founders who push everything to cold storage to save money. Keep at least 3 months hot.

HIPAA §164.312(b) audit controls

HIPAA Security Rule §164.312(b) requires "hardware, software, and/or procedural mechanisms that record and examine activity in information systems that contain or use electronic protected health information."

Practically that means: every system handling ePHI must produce logs of who accessed what, when, and how. You must "examine" — not just collect — these logs. Combined with §164.316(b)(2), the documentation of those audit activities must be retained for 6 years.

For SaaS dealing with covered entities, the BAA you sign typically obligates you to provide log evidence on request, including for breach investigation.

Audit evidence auditors ask for

Auditor AskEvidence FormatWhere to Find It
Log source inventorySpreadsheet / SIEM source listSecurity team documentation
Sample logs from N production systemsRaw log export covering a sample date rangeSIEM / log storage
Evidence of log reviewReviewer-signed dashboard screenshot OR ticket historySIEM dashboards; ticketing system
Alert response sampleAlert with linked IR ticket showing triage to resolutionSIEM + ticketing
Retention policy enforcementLifecycle policy config + sample old log proving deletionCloud storage console
NTP / clock sync evidenceSystem time config export from N hostsConfiguration management
Logging change controlPR / change ticket for last logging config changeGit / change management

5 common log management failures

  1. No SIEM — logs live in 10 different places. Auditors expect centralised review. CloudWatch + Splunk + Datadog + raw S3 files isn't a monitoring programme.
  2. Logs deleted before retention period. Lifecycle policy too aggressive; or app team has delete rights and used them.
  3. Clock drift across systems. Some hosts running on default OS clock, not NTP. Correlation broken; audit evidence questionable.
  4. No alerting on privileged access. Admin actions logged but not alerted. Breach goes undetected for months.
  5. App team has full access to its own logs. No segregation; tampering possible. SOC 2 CC6.1 failure.

Minimum viable log management programme

  • ☐ Centralised SIEM or log management platform receiving all 8 mandatory sources
  • ☐ NTP configured on all systems; drift monitored
  • ☐ 12-month minimum retention with immutable storage
  • ☐ At least 8 alerts configured (see threshold table above)
  • ☐ SIEM integrated with incident response platform (auto-ticket or pager)
  • ☐ Weekly log review documented (or continuous SOC monitoring)
  • ☐ Separate log storage from production environment (different account/project)
  • ☐ Documented log management policy reviewed annually

Related generators

Get started: Log Management & Monitoring Policy Generator, Information Security Policy, Incident Response Plan, Vulnerability Management Policy, Secure SDLC Policy, SOC 2 Gap Assessment, SOC 2 Evidence Pack.

Related reading: SOC 2 Evidence Collection Guide, Penetration Testing Guide, Secure SDLC Policy Guide.

⚠️ This guide is for informational purposes only and does not constitute legal or security advice. Specific log retention and monitoring requirements vary by framework, jurisdiction, and audit scope. Consult a qualified security professional for implementation tailored to your environment.