Audit log records
The members of an audit record, and every action a record can name, with what it records and which log holds it.
Each line of an audit log is one record. This page lists a record's members and every action. Audit logs explains what is recorded and why, and read the audit logs shows how to read them.
A record
| Field | Holds |
|---|---|
seq | the record's number in its log, rising |
at | when, RFC 3339 in UTC |
actor | the key id; user: and the user id for a request by session; sweep for the purge sweep; cli for a command on the host; empty for a token that did not parse or names no known key, and for a request by session refused before its session is known |
action | what was asked: one of the actions below |
target | the uuid, tenant id, key id or user id acted on, if any; for listener_full, the configuration key of the listener, listen or operator.listen; for membership_grant and membership_revoke, the user id, then the tenant id or operator, then the roles the command named if it named any, joined by /; for role_cap_set, the tenant id, then the cap's roles or all, joined by /; for settings_set, the tenant id, then after a / the names of the settings changed, joined by ,, and never a value |
version | the version id involved, if any |
status | the HTTP status answered, or null for a record that answers no request (listener_full) |
count | how many requests the record stands for; for listener_full, how many times the listener became full, not how many connections waited; for audit_chain_start, how many records the log held before its hash tree |
n | the record's place in its log's hash tree, from 0 with no gap; null for a record written before the tree, by release 0.4.19 or earlier |
leaf | the record's leaf in the hash tree, 64 hex digits: the SHA-256 of its place, its log, and every member but seq, n and leaf as this line holds them, with a counted record's count taken as 0; null with n |
counted | true for a counted record, whose count grows during its minute and is not part of its leaf; false otherwise |
closes | the place n of the counted record this record closes; null for every other record |
A record holds no vCon content, no token and no client address, and nothing of a user but its id: no label, issuer or subject.
Every action
Each action, what it records, and the log it is in. "The key's log" is the tenant log of the key's tenant, or the admin log for an operator key. An action through MCP is recorded as its HTTP route records it.
| Action | Records | Log |
|---|---|---|
create | a vCon stored (POST /vcons) | the tenant's |
replace | a vCon replaced by a new version (PUT /vcons/{uuid}) | the tenant's |
read | a vCon read (GET /vcons/{uuid}) | the tenant's |
read_masked | a vCon's masked view read, which holds no content (GET /vcons/{uuid}?view=masked) | the tenant's |
reveal_parties | a vCon read as a reveal of the parties (GET /vcons/{uuid}?reveal=parties) | the tenant's |
reveal_subject | a vCon read as a reveal of the subject (GET /vcons/{uuid}?reveal=subject) | the tenant's |
reveal_dialog | a vCon read as a reveal of the dialog (GET /vcons/{uuid}?reveal=dialog) | the tenant's |
reveal_analysis | a vCon read as a reveal of the analysis (GET /vcons/{uuid}?reveal=analysis) | the tenant's |
reveal_links | a vCon read as a reveal of the links (GET /vcons/{uuid}?reveal=links) | the tenant's |
reveal_all | a vCon read as a reveal of the whole vCon (GET /vcons/{uuid}?reveal=all) | the tenant's |
reveal_audio | a vCon read as a reveal of one dialog's recording, to play it (GET /vcons/{uuid}?reveal=audio) | the tenant's |
delete | a vCon deleted (DELETE /vcons/{uuid}) | the tenant's |
list | a page of the vCon list (GET /vcons) | the tenant's |
search | a search of vCon text (POST /vcons/search); its target is the window searched as <since>/<until>, never the text | the tenant's |
search_hit | a vCon a search answered as a hit, under its version; one record each, before the answer is sent | the tenant's |
purge | a version erased, by the purge sweep (actor sweep), or at once by a delete when the period is 0d | the tenant's |
legal_read | a read through the legal routes of the latest kept version or of one version (GET /legal/vcons/{uuid}, GET /legal/vcons/{uuid}/versions/{version}) | the tenant's |
legal_read_masked | the masked view of that version read through a legal route, which holds no content (?view=masked on either legal read route); new in 0.4.8 | the tenant's |
legal_reveal_parties | a legal read as a reveal of the parties (?reveal=parties on either legal read route) | the tenant's |
legal_reveal_subject | a legal read as a reveal of the subject (?reveal=subject on either legal read route) | the tenant's |
legal_reveal_dialog | a legal read as a reveal of the dialog (?reveal=dialog on either legal read route) | the tenant's |
legal_reveal_analysis | a legal read as a reveal of the analysis (?reveal=analysis on either legal read route) | the tenant's |
legal_reveal_links | a legal read as a reveal of the links (?reveal=links on either legal read route) | the tenant's |
legal_reveal_all | a legal read as a reveal of the whole vCon (?reveal=all on either legal read route) | the tenant's |
legal_reveal_audio | a legal read as a reveal of one dialog's recording, to play it (?reveal=audio on either legal read route) | the tenant's |
legal_versions | a read of a vCon's version history | the tenant's |
restore | a deleted vCon made live again | the tenant's |
hold | a legal hold placed | the tenant's |
release | a legal hold released | the tenant's |
audit_read | a page of a log read over HTTPS or MCP (GET /audit, GET /admin/audit) | the log read |
retention | the tenant's retention period changed, copied from the admin log's tenant_retention | the tenant's |
metadata | the tenant's metadata level changed, copied from the admin log's tenant_metadata | the tenant's |
limits | the tenant's own limits changed, copied from the admin log's tenant_limits | the tenant's |
export | a run of vcon-server export parquet, with its outcome (actor cli) | the tenant's |
key_info | a key reading what it may do (GET /key) | the key's |
openapi | a read of GET /openapi.json | the key's |
health | a health check, counted | the key's |
auth_failed | a request whose token was refused (status 401); a request with both a key and the session cookie (400); a request by session refused for its cookie (401), its origin (403) or its CSRF token (403); counted | the key's tenant's when the key is known, and the session's tenant's, under user: and the user id, for a wrong CSRF token; otherwise the admin log with an empty actor |
mcp | a request to /mcp, counted | the key's |
wrong_listener | a valid key, or a live session, refused because it came to the listener that serves the other kind, on a server with an operator listener, counted | the admin log for an operator key or session; the tenant's for a tenant key or session, or the admin log when the tenant's cannot be opened |
listener_full | a listener that held limits.connections connections and took no more until one ended. The record describes a state of the listener and answers no request: its actor is empty, its status is null, and its count is the times the listener became full in the minute, not the connections that waited; counted | admin |
rate_limited | requests of a key refused 429 rate-limited by a rate of [limits.rate], the key's or its tenant's, before their route ran. The actor is the key and status is 429; one record for each key a minute, written when the minute ends or by the server's first refusal of a later minute, whose count is how many were refused. A session's request past its tenant's rate is counted under the user (user:<id>) in the tenant's log; counted | tenant; admin for an operator key |
csp_report | a request to POST /console/csp-report, where a browser reports that a console page broke its content-security policy. The route takes no key, so the actor is empty; status is 204 for a report taken, 400, 408, 413 or 415 for a request refused, or 429 for the requests refused in the minute past the listener's number of reports (one record, written when the minute ends); nothing the report says is kept; counted | admin |
audit_chain_start | the start of the log's hash tree, at place n 0, written before the first record of a log that holds records from before the tree. It answers no request: its actor is empty, its target, version and status are null, and its count is how many records came before it. A log made by this release has no such record | each log, the tenant's and the admin log |
count_closed | the close of a counted record, written by the log's checkpoint once the record's minute has ended: closes names the record, and count is the count it ends with; a later request of the same kind starts a new counted record. It answers no request: its actor is empty, and its target, version and status are null | each log, the tenant's and the admin log |
checkpoint_key | the publication of the key that signs the log's checkpoints, written by the first checkpoint that uses it: the target is the key's id in hex. It answers no request: its actor is empty, and its version and status are null | each log, the tenant's and the admin log |
key_create | a key made, over the admin API, at POST /tenant/keys or by vcon-server key create | admin, copied to the tenant's for a tenant key |
key_revoke | a key revoked, over the admin API, at DELETE /tenant/keys/{id} or by vcon-server key revoke | admin, copied to the tenant's for a tenant key, and for a refusal at DELETE /tenant/keys/{id} to the log of the tenant whose key asked |
key_list | the keys listed | admin, copied to the tenant's for GET /tenant/keys |
user_add | a user made by vcon-server user add; the target is the new user's id, and a refused one has none | admin |
user_list | the users listed by vcon-server user list | admin |
user_deactivate | a user deactivated and its memberships removed, by vcon-server user deactivate | admin, copied to the log of each tenant the user held a membership in |
membership_grant | roles given to a user in a tenant, or the operator role, by vcon-server membership grant | admin, copied to the tenant's for a tenant membership |
membership_revoke | roles taken from a user's membership, by vcon-server membership revoke | admin, copied to the tenant's for a tenant membership |
role_cap_set | a tenant's role cap set or removed, by vcon-server tenant set-role-cap | admin, copied to the tenant's |
role_cap_read | a tenant's role cap read, by vcon-server tenant role-cap | admin |
settings_read | a tenant's settings read, at GET /tenant/settings; the target is the tenant id | admin, copied to the tenant's |
settings_set | a tenant's settings changed, at PUT /tenant/settings; a refused change is recorded too | admin, copied to the tenant's |
membership_list | a tenant's memberships listed, at GET /tenant/memberships; the target is the tenant id | admin, copied to the tenant's |
usage_read | a tenant's usage and limits read by its administrator, at GET /tenant/usage; the target is the tenant id | admin, copied to the tenant's |
session_start | a session started for a user who signed in; the actor is user: and the user id, and the target is the user id, then the tenant id or operator, joined by /; a refused start is recorded too. No sign-in method starts one yet | admin, copied to the tenant's |
session_read | a session read by its own browser, at GET /session, one record for each user and minute | the tenant's; admin for an operator's session |
session_end | a session ended by its user, at POST /session/logout; actor and target as for session_start | admin, copied to the tenant's |
tenant_create | a tenant made | admin |
tenant_list | the tenants listed | admin |
tenant_retention | a tenant's retention period changed | admin |
tenant_metadata | a tenant's metadata level changed (PUT /admin/tenants/{id}/metadata, vcon-server tenant set-metadata) | admin |
tenant_limits | a tenant's own limits changed, or the change refused with its status (PUT /admin/tenants/{id}/limits, vcon-server tenant limits with a flag); see tenant limits | admin |
tenant_limits_read | a tenant's limits and usage read by an operator (GET /admin/tenants/{id}/limits, vcon-server tenant limits with no flag) | admin |
tenant_remove | a tenant removed | admin |
rekey_tenant | a tenant key rotated (vcon-server rekey tenant) | admin |
rekey_master | the master key rotated (vcon-server rekey master) | admin |
backup | a run of vcon-server backup, with its outcome | admin |
Source of this page: website/content/docs/audit-log-records.md