Keep, clean up and seal the audit, step by step
Decide how long the audit is kept, clean it up only through one door that respects legal holds, and know that a row changed later cannot go unnoticed.
Keep the audit as long as you decide, clean it up only through one door that respects holds, and know that a later change cannot go unnoticed.
What it is
- Builder → Monitoring → Audit → Clean-up: a retention job per log (Audit Log, Access Diagnostics) with days to keep (0 keeps forever), a schedule and Pause.
- Clean-up on demand: pick dates, Preview the count, then Delete, page by page with a Stop button. Rows under a legal hold are always kept.
- Every clean-up page leaves an Audit Purge Log row: which log, who, the range and the rows deleted.
- The Audit seal job fingerprints new audit rows every 5 minutes and chains them into seals kept by Codossier Office; the Audit check job recomputes them daily at 03:00.
Good to know
- Audit rows themselves can be put on legal hold so no clean-up removes them, but that hold has no screen yet: an operator sets it. A record's own legal hold is a different feature, Legal hold.
- A finding never blocks work: it alerts Codossier Office's administrator and shows the office a red banner until resolved. This office has none, so the banner is not pictured.
- An audit row is never edited, and leaves only through the clean-up, which hands Codossier Office a receipt first.
- Cleaning up needs the Purge audit log & async jobs right; nothing was deleted for this guide.
Before you start
- The audit is kept as long as the office decides, cleaned up only through one door that respects legal holds, and sealed so that a later change to a row cannot go unnoticed.
- Here: the retention job and the clean-up for the audit log and the access diagnostics, the log every clean-up leaves, and the two jobs that seal and check the audit. Nothing is deleted.
1How long the audit log is kept
In Builder → Monitoring → Audit, the Clean-up panel opens on Audit Log. The Retention job removes rows older than Keep (days, 0 = forever), here 30; press Save days after changing it. Runs sets how often (every day at midnight), Pause stops it. The job itself cannot be deleted.
To clean up a range by hand, pick From and To, press Preview to count what would go, then Delete. Rows under a legal hold are always kept, and the clean-up runs page by page with a progress bar and a Stop button.

2Access diagnostics have their own clock
Switch the panel to Access Diagnostics: the same controls for the log of refused access and diagnostics downloads, kept 365 days here. Set 0 to keep either log forever; the clean-up on demand still works.
Only people whose role holds Purge audit log & async jobs may clean up (administrators hold it).

3Every clean-up leaves a row
Each page a clean-up deletes, by hand or by the nightly job, leaves an Audit Purge Log row: which log, who ran it (here Codossier Office Admin by hand, System User at night), the date range and the rows deleted. Open the Audit Purge Logs table from the left panel (type its name in Search tables).

4The audit seal and its daily check
Two platform jobs in Builder → Scheduled Jobs keep the audit honest. Audit seal runs every 5 minutes: it fingerprints new rows of the audit log, the builder audit and the access diagnostics, and chains them into seals kept by Codossier Office. Audit check runs every day at 03:00: it recomputes every seal and every sealed row and reports any row changed, missing or slipped in afterwards.
A finding never blocks anyone. It alerts Codossier Office's administrator and shows every person of the office a red banner until it is resolved. A clean-up hands Codossier Office a receipt for the rows it removes first, so a purge is never mistaken for tampering.

What next
- Reading the trail: Audit trail. Freezing a record and its surroundings for litigation: Legal hold.