Audit Trail

The record a system keeps of who changed what and when, and the reason a careful one hides records instead of erasing them.

Also known as change log activity log audit log

Definition

An audit trail is the memory a system keeps of itself. Who did what, and when. Every time somebody changes a price, cancels an invoice, corrects a phone number or opens a patient file, a line is written in a place the everyday screens never show. That line holds the name, the date, the time, and usually the value before and after the change.

Most people meet the idea during an argument. A customer says the invoice was cancelled by mistake. An accountant is certain the discount was never approved. With no record, the loudest voice wins. With one, the question takes two minutes and nobody has to guess.

This is why a careful system never truly deletes anything. The row is marked as removed and vanishes from the list, but it stays in the database along with the name of the person who removed it. Staff often ask us to make delete mean delete. We say no and explain why. The week money goes missing is the week you need the rows somebody deleted.

Reading is part of the trail too, and that is the part people forget. In a clinic, who opened a file matters as much as who edited it. When Linkysoft builds a records system, viewing a patient history is recorded the same way an edit is, because staff curiosity is a genuine risk and honest people are glad to prove they were nowhere near a file. The habit comes from our cybersecurity work, and it is built into DocMz, our hospital and clinic system.

Two questions are worth asking a supplier before you sign. How many years is the history kept? And can anyone holding an administrator password erase it? A trail a manager can quietly wipe is not a trail. It should sit apart from the daily data, out of reach of the people it describes.

There is a cost. The tables grow, and a busy shop can write more history lines than sale lines. Storage is cheap next to one disputed refund, so Linkysoft switches it on by default in every web application we build, then agrees with the owner how long each kind of record is kept.

Questions about Audit Trail

What is an audit trail in plain words?
It is a list the system writes by itself. Every change carries the name of the person, the date and the time, so any question about who did something already has an answer.
Is an audit trail the same as a backup?
No. A backup is a copy of everything as it stood at one moment. An audit trail is the story of each change, so it answers who and why, not only how the data looked last night.
Can a manager delete the audit trail?
In a well built system, no. The record is kept apart from the daily data and even the highest account can only read it. Ask the supplier to show you that screen before you buy.
Does keeping every change slow the system down?
Barely, if the history is written to its own table and the busy screens never read it. What does hurt is keeping ten years of it in the same place as this morning's orders.

Still not sure how this applies to your project?

Tell us what you are building and we will answer in plain language.