Audit trail
A separate log that records all changes to sensitive data, including what changed, who made the change, and when.
An audit trail is essential for regulated industries like banking, healthcare, and government where you must prove who did what and when. Unlike the transaction log, which focuses on recovery, an audit trail captures business-meaningful events: "user john.smith changed the salary for emp_id=5847 from 50000 to 55000 at 2024-01-15 09:30:42". It's typically stored separately from the main database, often in a write-once, append-only format and encrypted for security. Auditing can significantly impact performance, so it's usually configured selectively to track only sensitive tables or columns. Many databases offer built-in audit features (Oracle Audit, PostgreSQL pgaudit) but some organizations maintain separate audit systems for stronger isolation.