Skip to content
Glossary · Identity and security

Audit log

Also called activity log, security log.

Definition

A record of who did what in a system, when and from where, kept so actions can be traced later.

Last updated

What it is.

Each entry in an audit log names an actor (a user, an admin or a service), the action (viewed, created, changed, deleted, exported, logged in), the object it touched, the time and usually the IP address or device. Entries are added, never edited.

It is different from an application log, which helps engineers debug. An audit log is written for security teams, auditors and customers who need to answer the question: who did this? A regulated version, with stricter rules on what is kept, is often called an audit trail.

Why it matters

When data leaks, a setting changes or money moves, the audit log is how you find out what happened. Security reviews and audits such as SOC 2 ask for it, and enterprise buyers often want to see their own users' activity in the product.

In a product build

We write audit events from the server, in the same transaction as the change where possible, into an append-only table or store. Admins get a filterable audit page, and we decide early how long entries are kept and who may read them.

Watch out

Common mistakes.

  1. 01

    Logging only failures. Successful sensitive actions, such as exports and permission changes, matter most.

  2. 02

    Letting admins delete or edit entries, which makes the log worthless as evidence.

  3. 03

    Writing secrets, passwords or full card numbers into the log.

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