Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

Audit trail for operations

How the audit trail that ships with Exponential helps a business run its site reliably, find the change behind an incident, and prove that its record of events was not altered.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/businesses/reliability/audit-trail-for-operations.md

On this page

Audit trail for operations

This page is for managers and administrators who want to know who changed what on the site, especially when something has gone wrong. It explains what the audit trail records, how it helps operations, how to read it, and what to set up once. The full reference is The audit trail and Security and audit. Compliance use is covered separately in Compliance evidence from the audit trail.

The audit dashboard
The audit dashboard

Contents

  1. Why operations needs an audit trail
  2. What is recorded
  3. Proof the record was not changed
  4. Using it after an incident
  5. Alerts
  6. Set up once
  7. Who may read it
  8. Checklist

Why operations needs an audit trail

Many incidents start with a change: a setting written, a role granted, a subtree removed, a cache cleared at the wrong moment. When the site misbehaves, the fastest question is "what changed just before?". The audit trail answers it.

It is on by default from Exponential 6.0.15 and needs no setup to start recording (Audit trail).

What is recorded

From The audit trail, what is recorded:

ChannelExamples
contentPublish, move, copy, remove, hide, sections, states, trash, versions, URL aliases, classes, content jobs
accessSign-in, failed sign-in, refused view, account lock, role assignment, password reset
systemSettings writes, cache clears, cronjob runs, commands, package installs, maintenance, deploys
commerceOrders, payments (never card data), VAT, currencies, discounts, exports and imports
readSampled views, searches and downloads, only when reads are switched on

For operations the system channel is the most useful: it shows deploys, maintenance windows, cache clears and settings changes in one place.

Shipped retention, from settings/audit.ini: the content, access, system and commerce channels keep live files 90 days and archives 730 days; the read channel 30 and 90 days. These can be changed in an override (Audit trail).

Proof the record was not changed

A log that anyone can edit proves little. The audit trail is tamper-evident (Audit trail, why you want it):

  • Every record carries the hash of the record before it (a hash chain).
  • Daily files are closed, archived and listed in signed manifests.
  • verify tells you whether anything was edited or cut out:
php bin/php/audit.php verify --allow-root-user     # exit 0: every chain intact; 1: a chain is broken
php bin/php/audit.php status --allow-root-user     # one line per channel, ending in "intact"

Run verify on a schedule and alert on a non-zero exit status (Health checks and monitoring).

Using it after an incident

  1. Note the time the problem started (from your monitor or the first customer report).
  2. Open the Audit tab in the administration (/audit/dashboard) and its console, filtered to a window just before that time.
  3. Look in system for deploys, settings writes, maintenance and cache clears, and in content for large removals or moves.
  4. From an error reference, the log viewer's The audit of this moment link opens the same window directly (Logs and error references).
  5. Write what you found into the incident note.

From a shell, the newest events of a channel:

php bin/php/audit.php tail --channel=system --lines=20 --allow-root-user

Tip

A subtree removal is recorded as one parent event with a child per node below it, and a content job is the parent of everything its batches did. "Who removed this?" has a single answer (Audit trail).

Alerts

Alert rules watch for brute-force sign-ins, an administrator role being granted, settings written out of hours, mass deletes, the audit being switched off and a broken chain (Audit trail). By default alert mail goes to the site's administrator e-mail address; check the recipients with:

php bin/php/console exp:audit alerts recipients --allow-root-user

Make sure the address is a mailbox someone reads, not a personal one that leaves with a person.

Set up once

From The audit trail, try it in two minutes:

  1. Make sure the frequent cronjob group runs every few minutes. It contains the audit part that indexes, delivers, evaluates alert rules and once a day rotates, verifies and archives.
  2. Check who gets alert mail (above).
  3. Back up settings/override/audit.ini.append.php: it holds the signing and pseudonym keys. Keep it as private as any password.

Decide also what happens if the audit cannot write, for example on a full disk. The shipped setting OnWriteFailure is continue: the request goes on, the failure is logged, and the dashboard warns, "so a full disk does not take the site down". refuse blocks security-relevant actions instead while the audit cannot write. Choose refuse only where an unrecorded change is worse than a refused one (Audit trail, when the audit cannot write).

Who may read it

Two policies govern it: audit/read for the tab, console and exports, and audit/manage for archives, settings and "Verify now". Only the Administrator role holds them in a new installation, and a refused attempt to open it is itself recorded (Audit trail, who may look). Give audit/read to the people who handle incidents and compliance, and keep audit/manage to very few.

Checklist

  • To do: The frequent cronjob group runs, so the audit is indexed and alerts are evaluated.
  • To do: audit.php verify runs on a schedule and alerts on failure.
  • To do: Alert mail reaches a shared mailbox someone reads.
  • To do: settings/override/audit.ini.append.php is in the backup and kept private.
  • To do: The people who handle incidents can open the Audit tab.
  • To do: The OnWriteFailure choice was made on purpose.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x