Skip to content
Glossary · Compliance

Audit trail

Also called electronic audit trail.

Definition

A secure, time-stamped history of who created, changed or deleted a record, kept so the record can be trusted later.

Last updated

What it is.

An audit trail is a stricter cousin of the audit log. It is tied to specific records, such as a lab result, a batch record or a signed form, and shows every version: who changed it, when, and what the old and new values were. Old values are never overwritten.

In FDA-regulated work, 21 CFR 11.10(e) asks for secure, computer-generated, time-stamped audit trails of operator entries and actions that create, modify or delete electronic records. It says changes must not obscure earlier information, and the trail must be kept as long as the record itself.

Why it matters

In regulated fields such as pharma, clinical trials and medical devices, a record without a trustworthy audit trail may not be accepted as evidence. Inspectors read audit trails to check data integrity. Building one in later means migrating history you never kept.

In a product build

We store each change as a new row with actor, time, old value, new value and reason, written by the server in the same transaction as the change. Times come from the server clock, entries are append-only, and the trail can be exported for an inspector.

Watch out

Common mistakes.

  1. 01

    Recording that a record changed but not what the old value was.

  2. 02

    Using the user's device clock for time stamps.

  3. 03

    Giving database admins a quiet way to rewrite history outside the app.

Sources

Read the official text.

Primary sources this definition is based on.

Tools

Work it out with a tool.

Related

Related terms.

Building something with this? Ask an engineer.

OceanLab designs and builds production software. Tell us what you are planning and we will reply with how we would approach it.

OceanLab

Enterprise Software Engineering - Human + AI

Languages

Locations

Global Headquarters

21 Merchant Road, 3rd Floor, Singapore 058267

Main corporate office and leadership operations

North America Office

548 Market Street, PMB 12472, San Francisco, CA 94104

Client operations and business development

India Office

402 Shivalik Shilp II, SG Highway, Ahmedabad 380015

Engineering and delivery center

© 2026 - Copyright. All Rights reserved OceanLab