Back to Audits

Audit Trail: What It Is, What to Record and Compliance Requirements

8 min read

Audit trail definition, contents and compliance requirements

Short answer: An audit trail is a chronological, tamper-resistant record of who did what, to which system or data, when, from where and with what result. It lets you reconstruct events, detect misuse and prove that controls operated. HIPAA, SOC 2, ISO 27001 and PCI DSS all expect audit trails for systems that hold sensitive data.

Related guides: Logging and monitoring policy · Data retention policy · Audit evidence requests

Key takeaways

  • An audit trail answers who, what, when, where and outcome for every significant action.
  • Audit trails are only useful if they are complete, time-synchronized, protected from tampering and reviewed.
  • HIPAA, SOC 2, ISO 27001, PCI DSS and FDA 21 CFR Part 11 each set expectations, with PCI DSS being the most specific about retention.
  • Decide which events matter up front: access to sensitive data, privileged actions, authentication and configuration changes.
  • Keep the review itself as evidence. An unread audit trail rarely satisfies an auditor.

What is an audit trail?

An audit trail is the sequence of records that shows how a system, record or transaction changed over time and who caused each change. The term comes from accounting, where an audit trail lets an auditor trace a figure in the financial statements back to the original transaction. In information security, the idea is the same: you should be able to trace an action back to a specific user or process.

Typical examples:

  • A clinician opens a patient record in an EHR, and the system records the user, patient record, time and action.
  • An engineer changes a firewall rule, and the cloud provider records the API call, the identity that made it and the before and after values.
  • A finance user approves a payment, and the system records the approver, amount and timestamp.
  • An administrator grants a new user access to production, and the identity provider records who approved and who granted it.

Is an audit trail the same as an audit log?

They are closely related, and many people use the terms interchangeably. The practical difference is scope: an audit log is the raw record produced by one system, while an audit trail is the connected story you can follow across one or more logs. Our audit logs guide covers what each log should capture and how to manage it.

Audit trail compared with a system log

Aspect System or application log Audit trail
Main purpose Troubleshooting, performance, debugging Accountability, security investigation, compliance evidence
Content Errors, warnings, technical events User and system actions on data and configuration
Identity Often missing or generic Always ties an action to a user or service identity
Integrity Often editable, rotated quickly Protected from change and kept for a defined period
Audience Engineers Security, compliance, auditors, investigators

In short, every audit trail is built from logs, but not every log is suitable as an audit trail. A debug log that rotates every day and records no user identity will not help you answer "who accessed this patient record last month".

What should an audit trail record?

Each entry should let someone who was not there understand the event. NIST SP 800-53 control AU-3 (NIST SP 800-53 Rev. 5) describes the core content: what type of event occurred, when and where it occurred, the source, the outcome and the identity of the individuals or subjects associated with it.

Use this checklist when designing or reviewing an audit trail:

  • User or service identity: a unique ID, not a shared account.
  • Action: read, create, update, delete, export, approve, login, privilege change.
  • Object: the record, file, resource or setting affected.
  • Timestamp: date and time from a synchronized clock, with time zone.
  • Source: IP address, device, application or API client.
  • Outcome: success or failure, with a reason for failures.
  • Before and after values for changes to critical records or configuration, where practical.

Events worth capturing in almost every environment:

Event category Examples
Authentication Logins, failed logins, MFA changes, password resets
Access to sensitive data Viewing, exporting or printing records with PHI, cardholder data or personal data
Privileged actions Admin role grants, root or break-glass use, permission changes
Configuration changes Firewall, IAM, encryption and logging settings
Logging itself Logs stopped, paused, deleted or reconfigured
Data lifecycle Creation, modification and deletion of key records

Do not put the sensitive data itself into the log. Recording that a user viewed a patient record is useful; copying the diagnosis into the log creates a new exposure.

Which frameworks require audit trails?

Most security and privacy frameworks require activity records, but they differ in how specific they are.

Framework Requirement What it means in practice
HIPAA Security Rule Audit controls, 45 CFR 164.312(b), plus information system activity review in 164.308(a)(1)(ii)(D) Record and examine activity in systems that contain or use ePHI, and review those records regularly
SOC 2 Trust Services Criteria CC7.2 and CC7.3 (AICPA TSC) Monitor system components for anomalies and evaluate security events
ISO 27001:2022 Annex A 8.15 logging, 8.16 monitoring activities, 8.17 clock synchronization (ISO 27001) Produce, store, protect and analyze logs of activities and events
PCI DSS v4.0.1 Requirement 10 (PCI SSC document library) Log access to system components and cardholder data, retain audit log history for at least 12 months with the most recent three months immediately available
FDA 21 CFR Part 11 Section 11.10(e) Secure, computer-generated, time-stamped audit trails for regulated electronic records; changes must not obscure earlier entries
NIST SP 800-53 AU family, including AU-2, AU-3, AU-6, AU-9 and AU-11 Define events, record content, review, protect and retain audit records

HIPAA does not set a specific retention period for audit logs. The six-year retention rule in 45 CFR 164.316 applies to required policies, procedures and documentation, so decide your log retention in your data retention policy based on risk, contracts and other laws.

How do you make an audit trail trustworthy?

An audit trail is only as good as the confidence that it is complete and unaltered. These practices make it defensible:

  • Centralize. Ship logs from applications, cloud accounts and the identity provider to a central store or SIEM, so an attacker on one system cannot erase the evidence.
  • Restrict access. Only a small group can read logs, and almost no one can delete them. Separate log administrators from system administrators where possible.
  • Make it tamper evident. Use write-once storage, object lock or integrity checks, and alert when logging is disabled.
  • Synchronize clocks. Use a common time source so events from different systems line up during an investigation.
  • Set retention deliberately. Define how long each log type is kept and make sure deletion happens on schedule.
  • Test it. Periodically pick an event and confirm you can trace it end to end.

Your logging and monitoring policy is where these rules should be written down.

How should audit trails be reviewed?

Review means looking for events that matter and acting on them, not reading every line. A workable approach:

  1. Define alert rules for high-risk events, such as admin role grants, mass exports, logins from unusual locations or logging being turned off.
  2. Triage alerts daily or as they arrive, and open a ticket for anything that needs follow-up.
  3. Run periodic reviews of sensitive access, for example a sample of who viewed high-profile patient records or production data.
  4. Record the review with the reviewer, date, findings and actions taken.
  5. Feed findings back into access reviews, training and risk management.

Auditors usually ask for both the configuration (proof that logging is on) and evidence of review. Our guide to audit evidence requests shows what that typically looks like.

How SecureSlate helps

SecureSlate helps you show auditors that logging is in place and reviewed. Agentless, read-only cloud integrations check that services such as cloud audit logging are enabled and retained, and flag drift. Built-in HIPAA, SOC 2, ISO 27001, PCI DSS and NIST CSF frameworks map these checks to the relevant requirements, so one piece of evidence covers several audits. Access reviews keep a record of decisions, and audit management organizes evidence for your auditor. SecureSlate does not perform audits or issue certifications.

FAQ

What is an audit trail in simple terms?

A record of who did what, when, where and with what result, kept in a way that cannot easily be changed.

What is an example of an audit trail?

An EHR access history showing each user who opened a patient record, the time, the action taken and the workstation used.

How long should audit trails be kept?

It depends on the framework. PCI DSS requires at least 12 months with three months immediately available. HIPAA does not set a specific log retention period, so organizations set one in policy based on risk and other obligations.

Who should have access to audit trails?

A small group in security or compliance should be able to read them, and almost no one should be able to change or delete them.

Is an audit trail required for SOC 2?

SOC 2 does not prescribe specific logs, but the monitoring criteria in CC7 mean auditors expect logging of security-relevant events and evidence that alerts are reviewed.

Disclaimer (legal note)

This article is for general information only and is not legal, regulatory, or professional advice. Requirements vary by framework, industry, and jurisdiction. Consult qualified advisors for your specific obligations.

Need compliance without the complexity?

SecureSlate automates ISO 27001, SOC 2, GDPR, HIPAA, and more. Built for growing teams. See it in action.

Find compliance gaps in 30 seconds

Keep reading

Jun 1, 2026 · Audits

Compliance Audit Checklist: How to Prepare for a Compliance Audit

Jun 1, 2026 · Audits

Internal Compliance Audit: How to Conduct One Step by Step

Jun 1, 2026 · Audits

Security Audit Checklist: 10 Areas to Review Before Your Next Audit

View more posts