Skip to content
Audit & ReportsMarkdown

Retention and sites

The audit trail is kept for the life of the realm, never edited, outlives what it names and the realm's deletion, and is kept by each site that serves the realm.

Available, with limitsAPI

The realm keeps its audit trail for as long as the realm exists, and no record is ever edited or deleted. A record written today is there to read years from now, so an investigation never finds its evidence aged out.

This is limited today: on a realm served from more than one site, each site keeps its own records and you read them site by site. Choosing a retention period of your own is planned.

WhenThe trail
Every dayKept whole; nothing expires a record
A user, group or agent is deletedTheir records stay
The realm is deletedIts trail stays

On a realm served from more than one site, each site records what it did and keeps its own records. A trail read at one site shows what that site recorded. To read every site’s records, make the same read on the host name that reaches each site, and merge the answers by eventTime: see Read every site’s records and Multi-site realms.

There’s nothing to set up. Read a user’s trail at the site that serves you (Call the API shows how to get $CVYUH_SESSION):

Terminal window
curl "https://foobar.cvyuh.com/api/v0/am/audit/v1/trail?person=<maya's id>" \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION"
WhatDefaultRange
How long a record is keptFor the life of the realmNot configurable today
Editing or deleting a recordNeverNo call does it, a realm administrator’s included
Where a record is keptThe site that wrote itEvery site keeps its own
SymptomCauseFix
Records from a sign-in at another site are missingEach site keeps its own recordsRead the trail on that site’s host name
A deleted user’s or group’s history comes back emptyA deleted object’s history can’t be read at its addressIts sign-ins and tokens stay on the trail by its id; read ?person=<their id> if you kept it
  • Records can’t be changed. No call edits or deletes a record, a realm administrator’s included.
  • When a realm is deleted for good, its trail is kept unless you ask for it to be removed. See Retention and clean-up.
  • The trail grows with the realm. Setting auditDecisions to all adds a record per request; see What is recorded.
  • Records aren’t signed yet. A tamper-evident trail is planned: see What’s next for audit and reports.

A retention period you set for your realm, and a copy of the trail kept in your own storage: see What’s next for audit and reports.