UTMStack

Articles12 min read

SOC 2 Logging Requirements: What to Log and How Long to Keep It

By UTMStack Team

Sooner or later, every SOC 2 project reaches the same question: what exactly do we have to log? The criteria an auditor tests against never give a list of events, a retention period or a tool. In the whole document, the word “logging” appears exactly once. The criteria describe outcomes, such as detecting anomalies and responding to incidents, and leave you to prove them. This guide translates those outcomes into the logs, retention settings and evidence auditors actually ask for.

The short answer: SOC 2 has no fixed logging checklist. The Trust Services Criteria, mainly CC6 (access) and CC7 (system operations), require you to control and record access, monitor systems for anomalies, evaluate security events and respond to incidents. In practice, auditors expect logs of sign-ins, privilege and access changes, configuration changes and security alerts from every system in scope, proof that someone reviews them and acts, and logs kept long enough to cover the whole audit period. SOC 2 does not name a SIEM (security information and event management system) or set a retention number; you set both in policy, and the auditor checks that you follow it.

Where logging sits in SOC 2

SOC 2 (System and Organization Controls 2) reports are issued by licensed certified public accountant (CPA) firms, which test your controls against the American Institute of Certified Public Accountants (AICPA) Trust Services Criteria. The current edition is the 2017 criteria with points of focus revised in 2022; the criteria themselves have not changed since 2017. Every report covers the Security category, whose criteria are also called the Common Criteria (CC1 to CC9). Availability, Processing Integrity, Confidentiality and Privacy are optional. Logging matters most in the Common Criteria, so every SOC 2 report touches it.

Each criterion comes with points of focus: examples of what a control might address. They are not a mandatory checklist. The only one that says “logging” sits under CC7.2, which lists logging of unusual system activity among the detection procedures an organization may use.

The AICPA text is copyrighted, so the table below paraphrases each criterion and adds what it usually means for logs.

CriterionWhat it covers (paraphrased)What it means for logs
CC6.1Logical access security over protected informationRecord who signs in to what, including administrators and service accounts
CC6.2Registering, authorizing and removing usersLog account creation, approval and removal, and keep the tickets
CC6.3Granting, changing and removing access by roleLog role and group changes, especially new administrator rights
CC6.6Protection against threats from outside the system boundaryLogs from firewalls, virtual private network (VPN) gateways, intrusion detection and endpoint detection show the boundary protections work
CC6.8Preventing or detecting unauthorized or malicious softwareAntivirus and endpoint detection alerts, and records of unapproved software
CC7.1Detecting risky configuration changes and new vulnerabilitiesConfiguration change logs, change detection on critical files, and vulnerability scan results
CC7.2Monitoring system components for anomalies that may be attacks, errors or failuresThe core logging criterion: collect logs, alert on anomalies, and watch that monitoring itself works
CC7.3Evaluating security events to decide whether they are incidentsTriage records: who looked at an alert, what they decided and why
CC7.4Responding to incidents with a defined programIncident tickets, actions taken and timelines built from logs
CC7.5Recovering from incidentsRecords of restoration and lessons learned
CC8.1Authorizing, testing and approving changesChange logs from code repositories, pipelines and infrastructure, tied to approvals
CC4.1Ongoing evaluations that controls are present and workingPeriodic reviews of the logging setup itself: sources, alerts and gaps

How SOC 2 criteria map to a logging program

Each step needs evidence that covers the whole audit period

  1. RecordSign-ins, access and changes. CC6.1 to CC6.3, CC8.1
  2. MonitorAlerts on anomalies and failures. CC7.1, CC7.2
  3. EvaluateDecide which events are incidents. CC7.3
  4. RespondContain, recover, document. CC7.4, CC7.5
  5. CheckConfirm the setup still works. CC4.1
Most findings come from the middle steps: logs that exist but are never reviewed, or alerts with no record of what happened next.

What events to log for SOC 2

Start from the system description in your SOC 2 report. Every component listed there, and every system that stores or processes customer data, is in scope. For each one, capture the events below.

SourceEvents to captureWhy auditors care
Identity provider and directorySign-ins (success and failure), multi-factor events, new users, disabled users, group and role changesCC6.1 to CC6.3: proves access is controlled and changes are approved
Cloud accountsControl plane activity: new users and keys, policy changes, security group changes, logging changesCC6.1, CC7.1: shows who changed permissions or exposed resources
Production servers and containersAdministrator logins, privilege use, service changes, process starts on critical hostsCC6.1, CC7.2
Code and deployment pipelineMerges to protected branches, pipeline changes, secrets access, repository visibility changesCC8.1: shows changes were approved and tested
Network edgeFirewall denies and allows at the boundary, VPN sign-ins, web application firewall blocksCC6.6
EndpointsMalware detections, endpoint detection alerts, disabled protectionCC6.8
The logging system itselfA source that stops sending, a disabled audit log, failed log collection, changes to alert rulesCC7.2 asks you to monitor that detection works

Each log entry should answer six questions. If your logs cannot answer them, an investigation stalls and an auditor notices.

What a useful audit log entry contains

Illustration: one cloud permission change, as a SIEM shows it after parsing

2026-10-20 14:03:11 UTC1 user j.rivera2 attached policy AdministratorAccess to user deploy-bot3 from 203.0.113.244 production account5 result: success6
  1. When, from a clock synced to a common time source
  2. Who, as a named person rather than a shared account
  3. What happened, specific enough to judge the risk
  4. From where: address, device or session
  5. Which system, so the event can be tied to the system description
  6. The outcome, because failures matter as much as successes
This single event touches CC6.3 (access changed) and CC7.2 (an anomaly worth an alert: a service account just became an administrator).

Two cautions. Logs can leak the data you protect, so mask passwords, tokens and customer records before long-term storage. And logging everything is not the goal: a smaller set that someone reviews beats a huge archive nobody opens.

How long to keep logs for SOC 2

The Trust Services Criteria do not set a retention period. Your own policy does, and the auditor checks that you follow it. Two facts should drive the number you choose.

  • The audit period. A Type 1 report covers whether your controls are suitably designed, without testing how they operated. A Type 2 report tests whether they operated effectively throughout a specified period. The criteria set no length for that period; in practice it commonly runs from 3 months, often for a first report, to 12 months for recurring reports. The auditor picks samples from anywhere in that period, so logs from its first day must still exist when fieldwork happens, often weeks after the period ends.
  • Investigations. Attackers can sit in a network for weeks before they are found. Logs that expire after 30 days cannot show how they got in.

Why retention must outlast the audit period

Illustration: a 12-month Type 2 period followed by fieldwork

  1. Month 1Period startsThe oldest logs the auditor may sample
  2. Months 1 to 12Controls operateAlerts, reviews and incidents happen and are recorded
  3. Months 13 to 14FieldworkThe auditor asks for samples from any point in the period
  4. Month 15Report issuedThe next period is already running
With 12 months of retention, the first month's logs would already be gone during fieldwork in this example.

A sensible setting for most SOC 2 companies is at least 12 months, with enough extra to cover fieldwork, and a few recent weeks or months kept fast to search. If other rules apply to you, the strictest one wins. The Payment Card Industry Data Security Standard (PCI DSS), for example, requires 12 months of audit log history with the last three months immediately available. See PCI DSS logging requirements and the retention table in SIEM compliance requirements for the numbers by framework.

The evidence auditors ask for

Expect requests like these during a Type 2 audit. Preparing them before fieldwork saves weeks.

  1. A logging and monitoring policy that names the systems logged, the events captured, who reviews them, how often, and how long logs are kept.
  2. A list of log sources that matches the system description, with proof each one is sending.
  3. Configuration evidence, such as screenshots or exports showing audit logging turned on in the cloud accounts, identity provider and databases.
  4. Alert samples. The auditor picks alerts from across the period and asks what happened to each one: who looked, what they decided, and the ticket.
  5. Review records that show logs and alerts were reviewed on the schedule your policy promises.
  6. Incident records with timelines, actions and lessons learned.
  7. Access to the logs themselves: who can read, change or delete them. Administrators of a system should not be able to erase its logs quietly.
  8. Retention settings that match the policy.
  9. Time synchronization across systems, so timelines from different sources line up.

SOC 2 logging gaps that become exceptions

Problems that turn into exceptions in a Type 2 report

No review evidenceLogs are collected, but nothing shows anyone read them
Silent sourcesA server or account stopped sending logs months ago and no alert fired
Alerts without ticketsSampled alerts have no record of triage or outcome
Shared accountsActions cannot be tied to a person
Editable logsSystem administrators can delete their own trail
Short retentionDefault 30 or 90 day settings that do not cover the period
The first three are easy to miss because they only show up when the auditor samples across the whole period.

Do you need a SIEM for SOC 2?

No. SOC 2 does not require any specific tool, and a very small company with one cloud account and an identity provider can meet CC7.2 with the native audit logs, a few alerts and a documented weekly review.

A SIEM earns its place when that stops scaling: logs live in many places nobody can search together, native retention is too short or too costly, or audit evidence takes days to assemble.

A SIEM collects the logs in one place, checks them against detection rules, keeps them for the period you set, and records who handled each alert. Compliance automation platforms are a different tool: they track policies, screenshots and settings, but they do not watch events. Many companies use both. See governance, risk and compliance (GRC) tools compared for how the two fit together.

How UTMStack fits

We build UTMStack, so weigh our view accordingly. Here is what it does for SOC 2, and where it stops.

  • SOC 2 report. The Enterprise edition includes a SOC 2 framework among its nine compliance frameworks. It maps the 51 SOC 2 requirements it tracks to 34 controls from one library based on National Institute of Standards and Technology (NIST) SP 800-53, checks the controls that can be proven from log data against your events over a recent window (30 days by default), and produces PDF reports and a score history. The free Community edition includes the Cybersecurity Maturity Model Certification (CMMC) 2.0 and the General Data Protection Regulation (GDPR), not SOC 2.
  • Honest limit on automation. Many SOC 2 criteria, such as board oversight or vendor management, cannot be proven from logs at all. In the current release, automated checks also cover only part of the criteria that logs could support. Rows without a check show as not evaluated and are left out of the score. You can add your own checks, or record a note and your evidence on any row so the report explains itself.
  • Detection for the systems SOC 2 companies run. More than 600 detection rules mapped to MITRE ATT&CK are checked as each log arrives, before storage. They include 73 for Amazon Web Services (AWS), 46 for Azure, 43 for Google Cloud, 57 for Microsoft 365 and 13 for GitHub, plus rules for Windows and Linux hosts through free agents.
  • Response and records. Alerts become incidents with a history of who did what. Response flows can block an address, disable an account or isolate a host. That trail of alert, decision and action is what CC7.3 and CC7.4 sampling looks for.
  • Retention. UTMStack can keep logs up to five years, with older logs in cold storage that stays searchable without a restore. Cloud plans keep about a month in fast storage and a year in the archive, with longer retention on request.
  • What it does not do. UTMStack has no file integrity monitoring, so file-level change detection for CC7.1 needs another tool. It has a Google Cloud parser but no Google Workspace parser, so companies using Google Workspace as their identity provider need another way to bring in those sign-in logs.

UTMStack is priced per device, never by log volume, which keeps the cost of logging everything in scope predictable. Ask for a quote or see pricing. To estimate storage for a year or more of logs, use the SIEM sizing calculator.

Frequently asked questions

Does SOC 2 require a SIEM? No. The Trust Services Criteria name no tools. They require monitoring, evaluation of security events and incident response. A SIEM is a practical way to meet CC7.2 once you have more than a few log sources, but native cloud logs with documented reviews can work for a small environment.

How long do I need to keep logs for SOC 2? SOC 2 sets no number. Keep logs at least long enough to cover your Type 2 period plus fieldwork, which in practice means at least 12 months with some margin. If PCI DSS, the Health Insurance Portability and Accountability Act (HIPAA) or a contract also applies, follow the strictest rule.

What is the difference between Type 1 and Type 2 for logging? A Type 1 report checks that logging and monitoring controls are suitably designed, without testing them over time. A Type 2 report tests that they operated over a period, so the auditor samples alerts, reviews and incidents from across that period. Logging exceptions appear in Type 2 reports, because only Type 2 tests operation.

How often do logs have to be reviewed? As often as your policy says, and the auditor will hold you to it. Real-time alerts for high-risk events plus a documented daily or weekly review of the rest is a common pattern. Never promise a review schedule you cannot evidence.

Can a compliance tool or SIEM produce my SOC 2 report? No. Only a licensed CPA firm can perform the examination and issue the report. Tools collect evidence; the auditor tests it. In 2026 the AICPA published FAQs on how software tools affect SOC 2 examinations, and its peer review board warned reviewers about template-driven reports.

Which SOC 2 criterion covers logging? CC7.2 is the core one: monitoring system components for anomalies. It is also the only criterion whose points of focus use the word “logging”. CC6.1 to CC6.3 cover access logging, CC7.3 and CC7.4 cover what happens after an alert, and CC8.1 covers change records.

Sources