Skip to main content
Category: Compliance and Monitoring

Audit Log

Also known as: Audit Trail, Audit History
Simply put

An audit log is a chronological record of activities within a computer system or application, capturing events such as when data is accessed, created, or changed. It generally serves as evidence of who did what and when, which can support accountability and investigations. This entry describes the concept of the log itself and does not cover retention periods, legal admissibility, or specific regulatory logging requirements, which vary by jurisdiction and context.

Formal definition

An audit log is a chronological, typically append-oriented record of system activities, including system accesses and operations performed over a given period. In practice it documents the occurrence of events such as data access, creation, and modification, together with contextual detail sufficient to attribute actions to actors and timeframes. Audit logs are primarily an information security and monitoring control supporting integrity and accountability objectives; within a data governance context they can contribute demonstrable evidence of processing activity, though on their own they do not constitute a records of processing activities obligation, a data inventory, or a lineage record. Scope, content, protection, and retention of audit logs depend on system design, applicable frameworks (for example NIST guidance or ISO/IEC controls), and jurisdictional requirements, none of which are specified in this definition. Note that a log recording personal data access may itself contain personal data and does not render that data non-personal.

Why it matters

Audit logs are foundational to accountability in both information security and data governance. By providing a chronological record of who accessed, created, or modified data and when, they enable organizations to investigate incidents, detect unauthorized activity, and reconstruct the sequence of events after the fact. Without a reliable record of system activity, an organization typically has limited ability to demonstrate what happened to data under its control or to hold individual actors accountable for their actions.

Within a data governance context, audit logs can contribute demonstrable evidence of processing activity, which supports the accountability expectations found in frameworks such as the EU GDPR and UK GDPR. However, they should not be overstated. An audit log is not, on its own, a records of processing activities obligation, a data inventory, or a data lineage record, even though it may inform those artifacts. Accountability under governance frameworks generally requires demonstrable evidence rather than stated intent, and audit logs are one form of such evidence among several.

It is also important to recognize that an audit log recording access to personal data may itself contain personal data, and it does not render the underlying data non-personal. Organizations should therefore treat logs that capture actor identities or data access events as potentially in scope for data protection obligations. The specifics of retention, protection, and legal admissibility of audit logs vary by jurisdiction, applicable framework, and system design, and are outside the scope of this entry.

Who it's relevant to

Security and monitoring teams
Security professionals rely on audit logs as a core monitoring and investigation control, using the chronological record of system accesses and operations to detect anomalies and reconstruct events during incident response. The integrity and protection of these logs is typically as important as their content.
Data protection officers and privacy leads
Audit logs can provide demonstrable evidence of processing activity that supports accountability expectations under frameworks such as the EU GDPR and UK GDPR. Practitioners should note that a log recording personal data access may itself contain personal data and that a log does not on its own satisfy a records of processing activities obligation.
Information governance and stewardship teams
Governance leads distinguish audit logs from related artifacts such as data inventories and lineage records. While logs can inform these governance outputs by evidencing what happened to data, they are not interchangeable with ownership, stewardship, or cataloging documentation.
Compliance and legal professionals
Compliance and legal reviewers assess whether logging practices meet applicable requirements, keeping in mind that retention periods, legal admissibility, and specific regulatory logging obligations vary by jurisdiction and context and are not addressed by the concept of the log itself.

Inside Audit Log

Event Record
An entry capturing a discrete action or occurrence within a system, typically including what happened, such as a read, write, modification, deletion, access grant, or configuration change.
Actor Identity
The identifier of the user, service account, or process responsible for the recorded event, supporting attribution and accountability. In data protection contexts this helps demonstrate who accessed or processed personal data.
Timestamp
The date and time an event occurred, generally recorded to a consistent time source so that events can be sequenced and correlated across systems.
Target or Object
The resource, record, or data element affected by the event, such as a specific dataset, file, or personal data record.
Action and Outcome
The operation attempted and whether it succeeded or failed, which supports both security monitoring and evidence of how data was handled.
Source Context
Contextual metadata such as originating system, IP address, session, or application component, used to reconstruct the circumstances of an event.
Integrity Protection
Controls that preserve the trustworthiness of log entries, such as append-only storage or tamper-evidence, so the record can be relied upon as evidence.

Common questions

Answers to the questions practitioners most commonly ask about Audit Log.

Does keeping an audit log by itself demonstrate accountability under governance frameworks?
Not on its own. Accountability under governance frameworks generally requires demonstrable evidence that controls operate as intended, and an audit log is one form of such evidence rather than a complete demonstration. A log that is never reviewed, is incomplete, or lacks integrity protections does little to show that processing is governed appropriately. The log must be part of a broader control environment that includes defined ownership, review processes, and the ability to produce meaningful records on demand. Treating the mere existence of a log as proof of compliance is a common error; its value depends on what it captures, how it is protected, and how it is used.
Is an audit log a security control or a governance artifact?
It commonly serves both purposes, but the distinction should not be collapsed. From an information security perspective, an audit log supports the integrity and, indirectly, the confidentiality and availability objectives by recording access and changes so that incidents can be detected and investigated. From a governance perspective, it can support ownership, stewardship, and policy enforcement by evidencing who acted on data and under what authority. The two uses overlap where a single log serves incident detection and governance evidence at once, but the design goals, retention drivers, and review responsibilities may differ. Assuming a security-oriented log automatically satisfies governance evidence needs, or vice versa, is a frequent mistake.
What events should an audit log typically capture for data protection purposes?
The appropriate scope depends on the systems, the sensitivity of the data, and applicable requirements, so this should be determined against your specific obligations rather than a fixed universal list. In general, organizations record events such as access to and modification of records, authentication events, changes to permissions or configuration, and administrative actions. Where personal data is involved, capturing who accessed which data, when, and the action taken is commonly considered useful. This entry does not prescribe retention periods or jurisdiction-specific logging mandates; those must be assessed separately against the relevant legal or standards instrument.
How should audit logs themselves be protected?
Because audit logs can be relied upon as evidence, their integrity and access controls are important considerations. Organizations generally restrict who can read, modify, or delete log entries, and often apply measures intended to detect or prevent tampering. Where logs contain personal data, they typically fall within the same protection expectations as other personal data holdings and are not exempt from those obligations. Applying integrity and confidentiality controls to the logs is commonly advised, though the specific measures depend on risk and context. This entry does not specify particular technical mechanisms.
Do audit logs contain personal data, and does that create obligations?
Audit logs frequently contain personal data, for example identifiers of the individuals performing actions or references to the data subjects whose records were accessed. Where this is the case, the log itself generally constitutes personal data processing and may be subject to the same principles that apply to other holdings, including in most jurisdictions considerations around lawful basis, retention, and access. Applying pseudonymization or restricting access does not remove the log from scope, since such data typically remains personal data. Retention rules, cross-border transfer mechanics, and enforcement consequences are outside the scope of this entry and must be assessed under the applicable regime.
How long should audit logs be retained?
There is no single answer, and this entry does not prescribe a period. Retention typically balances operational and investigative needs, the value of the log as governance evidence, and any applicable requirements, against data minimization and storage limitation expectations that apply where the log contains personal data. Retaining logs indefinitely can conflict with minimization principles, while retaining them too briefly may undermine their evidential value. The appropriate period should be defined by policy, justified, and documented as part of demonstrable accountability. Specific statutory retention obligations, where they exist, must be determined against the relevant legal instrument and are out of scope here.

Common misconceptions

An audit log by itself demonstrates compliance with a data protection regime.
An audit log is one form of supporting evidence, but accountability under governance and privacy frameworks generally requires demonstrable evidence across policies, processes, and controls, not merely the existence of logs. Whether logging is sufficient depends on jurisdiction, context, and the specific obligation at issue.
Audit logging is purely an information security control.
Audit logs sit at the overlap of information security and data governance. They support security objectives such as integrity and detection, but they also serve governance and accountability purposes such as evidencing who accessed or processed data. The purposes overlap but should not be collapsed into one another.
Audit logs contain no personal data and therefore fall outside data protection obligations.
Audit logs frequently include identifiers such as actor identity and source context, which can constitute personal data. Recording, retaining, and securing logs may itself be a processing activity, and treating logs as inherently out of scope for data protection is not generally safe.

Best practices

Define which events must be logged and to what level of detail based on your governance and security requirements, and document the rationale so the logging scope is defensible to a reviewer.
Apply integrity protection such as append-only or tamper-evident storage and restrict access to logs, so entries can be relied upon as evidence while limiting who can view potentially sensitive log contents.
Treat audit logs that contain identifiers as potentially personal data, and apply appropriate access controls, retention limits, and minimization consistent with applicable data protection obligations in your jurisdiction.
Ensure timestamps rely on a consistent and synchronized time source so events can be reliably sequenced and correlated across systems.
Establish and document a retention and disposal schedule for logs that balances investigative, security, and evidentiary needs against data minimization principles; note that specific retention periods depend on jurisdiction and context.
Periodically review logging configuration and coverage to confirm it still reflects current systems and obligations, and retain evidence of that review to support accountability.