Log retention
Configure per-tenant audit and session retention windows and inspect the purge chain anchor.
Configure retention
Retention is configured per tenant from Settings → Retention in the dashboard. Defaults are 365 days for audit events and 90 days for session records. The purge workers run once at server startup then every 24 hours.
Either field is optional — omit one to leave it unchanged. Set to 0 to disable automatic purge for that data type. Reducing retention permanently deletes records older than the new window on the next nightly cycle.
Chain anchor
Call GET /v1/audit/retention to inspect the last purge anchor for chain integrity:
anchor is null if no purge has run yet. Once set, auditors can confirm the chain is intact from the anchor forward by calling GET /v1/audit/verify.