Extend audit retention
For administrators, on a decision of the records manager. The shipped retention is 90 days live and 730 days archived per channel; the shipped channel blocks set both values, so change them per channel (Audit 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
Before you start
- The decided period per channel (for example
accessandsystem3650 days). - Disk space: check the archive sizes on Setup > Audit > Archives;
xzcompresses more than the default gzip. - Optionally a write-once mount for the archives.
Steps
Preview and set the values:
./console exp:ini set audit.ini/AuditChannel_access/ArchiveDays 3650 global --dry-run --allow-root-user ./console exp:ini set audit.ini/AuditChannel_access/ArchiveDays 3650 global --allow-root-user ./console exp:ini set audit.ini/AuditChannel_access/ArchiveFormat xz global --allow-root-userRepeat for the other channels concerned.
Optionally move archives to a dedicated mount, in
settings/override/audit.ini.append.php:[AuditArchiveSettings] ArchiveDir=/srv/worm/exponential-audit(create it first, owned by the site's user, mode 0750).
Clear the INI cache; reload PHP-FPM; restart Velocity.
Check that it worked
./console exp:audit purge --dry-run --allow-root-userno longer lists archives younger than the new period.- Setup > Audit (
/audit/settings) shows the values and the file they come from. - Keep the signing keys for the whole period (see "Rotate the audit signing key").
Related pages
- Audit retention
- Long-term audit retention
- Audit guide, 4.3 Retention
- 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.