Audit retention
This page is for data protection officers, records managers and administrators. Audit records serve accountability and security, and they contain personal data; their retention is a balance your organization decides. Exponential removes them automatically according to settings per channel (4.3 Retention).

Note This page describes features and common practice; it is not legal advice. Check the law that applies to your organization with your legal counsel.
Contents
The defaults
| Channel | LiveDays (uncompressed) | ArchiveDays (compressed archives) |
|---|---|---|
| content, access, system, commerce | 90 | 730 |
| read (off by default) | 30 | 90 |
The index the console searches keeps rows for [AuditIndexSettings] KeepDays (730) and pseudonymizes personal fields
after PseudonymiseAfterDays (90). The shipped channel blocks set both values themselves, so set them per channel; a
default in [AuditRotationSettings] would not be read.
Changing them
Preview first, then write to settings/override/audit.ini.append.php:
./console exp:ini set audit.ini/AuditChannel_access/ArchiveDays 365 global --dry-run --allow-root-user
./console exp:ini set audit.ini/AuditChannel_access/ArchiveDays 365 global --allow-root-useror edit the override by hand:
[AuditChannel_access]
LiveDays=90
ArchiveDays=365The change itself is recorded as system.setting.write. Check the result on Setup > Audit (/audit/settings,
read-only, shows each value and the file it comes from).
What happens at the end
- The daily task of the cronjob part archives days older than
LiveDays(verified, compressed, signed manifest) and purges archives older thanArchiveDays; each removal is recorded. - Preview:
./console exp:audit purge --dry-run --allow-root-user. - Purging never removes a signing key from the settings; the command names the keys that remaining archives still need. Remove a key yourself only when no archive signed with it remains.
- Erasure requests do not delete audit records before the end of their retention: deleting one would break the chain; the guide refers to art. 17(3)(b) and (e) and to the pseudonymization already applied.
Longer retention
If a records schedule or a law requires keeping audit records longer, the guide's reference configuration "Compliance:
long retention" keeps ten years compressed with xz on write-once storage
(6.6 Compliance: long retention):
[AuditChannel_access]
ArchiveDays=3650
ArchiveFormat=xz
[AuditArchiveSettings]
ArchiveDir=/srv/worm/exponential-auditKeep every signing key for as long as the archives it signed, store the settings backup with the same retention, and
run ./console exp:audit verify --archives --allow-root-user monthly. The records section of this help covers audit
records as evidence.
Related pages
- Audit guide, 4.3 Retention
- Privacy in the audit trail
- Retention of personal data: an overview
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
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.