Skip to main content

The audit log

Prism records who changed what, and when, in an audit log of its own:

  • in the audit_log table in the datapond;
  • as one line per event on the app container's standard output, for your log collector or SIEM.

Nothing is ever deleted from it unless you choose a retention period (audit.retentionDays, below). The default, 0, keeps every row for ever.

Super admins read it at /admin/audit, linked from the admin hub as Audit log.

What is recorded​

Each row names who (the signed-in person's email and identity-provider subject, their role, and how they came in: browser, api_key or system), what (the action), which thing (the target), the outcome (ok, refused or failed), and a small detail object. A row written while handling a request carries that request's id.

The role is the one the person acted under: super_admin or app_admin. An app admin's refused change on App users is a role_change_refused row, with the reason in detail (see The app admin role).

  • People and roles: adding and removing someone in App users (a removal under email sign-in, user_removed, carries detached_to and duplicate_pointers as a reset does, below, and follows a user_deactivated for the same person, which is written even when the removal is then refused), a role or data-scope change, a sign-in id linked, moved or cleared, deactivating and reactivating someone, resetting a deactivated row for its address's next holder (user_reset, with how many sign-in ids it retired and, as detached_to, the marker its conversations, answer history and saved prompts moved to, and as duplicate_pointers how many conversation pointers it set aside there because another held the same conversation slot under the address in a different case, and as runner what the agent runner answered the retire made before it), and the refusals of each (for a sign-in id, only a refusal because a row is deactivated: auth_sub_refused; a reset refused for the agent runner is user_reset_refused with reason runner_retire_failed, when the runner did not answer, runner_will_not_retire, when it refused or has no such call, or runner_not_asked, when no sign-in id is linked and the one that last signed in under the address may not be the person's, or the runner cannot be asked about the address alone; a reactivate the runner did not answer is user_reactivate_refused with reason runner_reinstate_failed). A row created at someone's first sign-in under easyauth or iap is user_added with that person as the actor. When a person in app.auth.superAdmins signs in, each other active row that held their sign-in id is auth_sub_cleared by the system, with reason listed_super_admin_signed_in. This holds while their own row is an active super admin row (see The app admin role). Asking the agent runner to revoke a person's Agent Router keys (router_key_revoke, saying whether it stopped them), to delete its copies of their conversations (runner_sessions_delete), to retire their runner user at a reset or a remove (runner_user_retire), and to lift the stop at a reactivate (runner_user_reinstate), each with what the runner answered, and by: last_sign_in when the row had no sign-in id linked and the runner was asked by the one that last signed in under its address. Erasing a person's history (user_erased: how many rows of each kind it deleted, the period the address was theirs alone, how many sign-in ids it used, and what it did not reach, by kind and by why; never a question, an answer or an id), and its refusals (user_erase_refused, with the reason). Erasing a person from the identity evidence (identity_evidence_erased: how many values of each kind, how many were new to the exclusion list, and the rows deleted per table; never an address or a login).
  • Context streams: registering, renaming and deleting one, entering or rotating a credential, a probe, each lifecycle step (propose, approve, enable, disable), designating the organizational stream, a manifest applied, a file uploaded, a run requested. A credential the source rejected, and a lifecycle step refused in the stream's current state, are recorded with outcome refused.
  • Definitions: a definition written, previewed, activated, withdrawn or discarded, including the populations an ownership table compiles when it is activated, and the installation's default scope set or cleared. A bulk action on Your definitions, or an import that activates, records one line per definition, as each row's own button would.
  • Imports: an ownership table or a classification imported, and an inspect of either file.
  • Installation settings on Admin › Users: which records a restricted viewer sees (restricted_row_scope_set), whether the per-person floor also hides who appears (floor_hides_presence_set), and the per-person floor itself. A save is per_person_floor_set, with the floor before (null when the chart value was in force) and after. Use the chart value is per_person_floor_cleared, with the floor that was saved as before. Whether answers may show identifiers: a save is identifiers_in_answers_set, with before and after as true or false (before is null when the chart value was in force). Use the chart value is identifiers_in_answers_cleared. Its before is the saved value and its after is the chart value as the app reads it, or null where the app was not given one. Whether people limited to their reporting line are served Agent Router spend: a save is restricted_spend_set, with before (null when it was never set) and after as on or off. This setting is off and has no control on the page in this release.
  • Feedback: a report triaged.
  • Sign-in: a sign-in and sign-out by emailed link. Under easyauth or iap your sign-in proxy signs people in and Prism never sees it, so Prism records session_started: a person's first request after roughly app.auth.sessionIdleHours (default 8) without one.
  • Reading other people's questions and answers: a super admin reading everyone's history or one person's, another person's answer, another person's feedback report or an attachment to one, the feedback export, or this audit log (admin_read).
  • Preview: a super admin starting, being refused, and stopping a preview as someone else.
  • Retention: each deletion of old rows (audit_pruned), and each deletion of old questions, answers and feedback under app.retentionDays (app_retention_pruned, with counts only).

What is not recorded​

  • Questions and answers. They stay in the app's own history, which has its own retention, and are never copied into the audit log.
  • Credential material: no credential, no part of one, no hash of one, and not the source's own error text about a rejected one.
  • Visitors who are not signed in. A refused sign-in link or a request with no identity stays in the app's telemetry (app_events): anyone who can reach the sign-in page could otherwise write rows nothing may delete.
  • Reading system data: ingest runs and their logs, the self test, a stream's settings.

The stdout line, for your SIEM​

Every event is also printed on the app container's standard output as one JSON line beginning {"event": "audit". It carries the row's fields and "stored": true, or "stored": false when the database could not take the row. Collect these lines the way you collect the container's other output. That copy is the one Prism cannot change after the fact.

Two differences from the table, both deliberate:

  • A definition is named by its id on the line, not by its name. A definition's name can be a value from your own spreadsheet, such as an area or a product, and the pod log is not the place for it. The audit_log row keeps the name. The same applies to the default scope's lines and to an import inspect's.
  • Compare the two copies by row_hash. Every row's row_hash covers its content and the row before it. A line that leaves a name out can't be re-hashed on its own, but its row_hash must still match the table's.

A session_started row can carry "decided": false. The table that decides whether a session has started could not be reached, so the event was recorded without knowing whether it was a new session.

The agent runner's lines​

The agent runner prints audit lines of its own, one for each per-user Agent Router key it mints or revokes, on the runner container's standard output. They are compact JSON, {"event":"audit","source":"runner",...}, without the spaces after : and , that the app's lines have, so match them on the parsed event and source fields rather than on a string prefix. They carry whose key it is, never the key. They are not in audit_log: collect the runner container's output alongside the app's. With a bring-your-own inference key (TARE_INFERENCE_KEY) the runner mints no keys; the only such lines it prints are for revoking keys left from a time it did.

Tamper evidence, and its limit​

The table refuses UPDATE, TRUNCATE and every DELETE except the retention prune below, and each row stores the hash of the row before it, so an edited or deleted row shows up when the chain is checked. The role Prism connects as owns the table, so that role could still switch the refusal off. Treat the SIEM copy of the stdout lines as the record to rely on, and compare it with the table by row_hash.

Two places check the chain for you: the self test's audit log chain line, and Check the chain on this page. Both walk the whole table, or from the newest retention anchor if the log has been pruned, and say one of:

  • intact, with how many rows were checked;
  • broken at row #N, and whether that row's own hash no longer matches its content (it was edited) or its link to the row before does not (a row before it was deleted or reordered);
  • not checked to the end, when the walk takes longer than its limit: 15 seconds in the self test, 30 on this page. The rows it did check say nothing about the rest.

Checking from this page is itself recorded (admin_read, scope: verify).

A broken chain means a row was changed or removed outside Prism: compare the rows around it with your SIEM copy by row_hash. An intact chain does not prove nothing was changed. A rewrite that recomputes every later hash, a table dropped and created again, or rows deleted from the end all check as intact; only the SIEM copy shows those.

Exporting it​

The page exports the current filter as CSV or JSON lines, oldest first. The filters go in the JSON body of a POST (with Content-Type: application/json), never in the address, because a proxy in front of Prism logs addresses and a filter is usually a person's:

POST /api/admin/audit {"format": "csv"}
POST /api/admin/audit {"format": "jsonl", "action": "role_changed", "since": "2026-01-01"}

GET /api/admin/audit?format=csv still exports everything, with no filter. A filter in a GET address from a signed-in person is refused.

The page's own export buttons send the filter in a POST to /api/admin/audit/exports, which answers a one-time address, /api/admin/audit/exports/<id>, and the browser downloads from it: those are the export lines a proxy log shows. The address works once, for the administrator who asked, within a minute; after that, or after the app restarts, it answers "This export has expired or was already downloaded. Export again." An administrator holds at most five exports waiting to download: a sixth drops the oldest, whose address then answers the same. A filter longer than 512 characters is refused.

The filters are actor (an email, any case, or a subject), action, target_type, target_id, since and until (dates or times, ISO 8601). A date or time with no offset is read as UTC. In the CSV, a cell that a spreadsheet would treat as a formula starts with an apostrophe. Each export is itself recorded.

Retention​

audit.retentionDays in your values:

  • 0, the default: keep everything. Nothing is ever deleted.
  • A number of days, at least 1: once a day the app deletes the rows older than that and writes an audit_pruned row saying how many and through which row. Only the oldest rows go, as one unbroken run, and the newest row is always kept.

After a prune, the oldest surviving row points at a deleted row. The newest audit_pruned row names that deleted row's hash (last_hash) and the last deleted seq (through_seq): a check that starts from it finds the log intact. A check that does not know about audit_pruned, such as a script written before retention existed, or the previous release after a rollback, reports the oldest surviving row as broken. If its prev_hash equals the newest audit_pruned row's last_hash, that is the prune, not tampering.

Choose the period your organisation keeps audit records for, which is often years. The table grows with administrative changes, sign-ins and reads of other people's answers, and most installations can leave it at 0. Retention applies to the table only. Your SIEM keeps its copy for as long as you tell it to.