Documentation

Audit log

The audit log records every configuration change in a project: who made it, what changed, when it happened, which surface it came from, and the before and after values of each modified field. Entries are searchable, cryptographically chained so tampering is detectable, and exportable as CSV, XLSX, or PDF. Every plan records and retains audit entries for 400 days; viewing and exporting the log is a Premium feature (see pricing).

What is recorded

A change to any of the following is one entry: screens, screen folders, playlists, media files and folders, applications, cards, schedules and levels, campaigns, notifications, webhooks, triggers, sources, fleet links, report schedules, alert mutes, members and roles, invitations, service clients, agent connections, group bindings, and project settings. Screen commands (reboot, reload, identify, clear cache, restart app, update, toast, screenshot) and fleet actions are also recorded along with their parameters.

Each entry includes:

FieldDescription
atTimestamp when the change was committed (UTC)
actorWho performed the action: kind (person, agent, service_client, staff, or system), plus id and name
approved_by, review_idFor agent-proposed changes, the person who approved the change and the review ID
sourceSurface where the change originated: dashboard, api, cli, mcp, staff, device, webhook, or system
actionStable resource.verb action code, such as screen.update, playlist.create, or webhook.rotate_secret
resourceThe affected resource's type, id, and updated name
changesList of changed fields: path (JSON Pointer such as /label), before, and after
revisionReference to the revision produced by the change (a playlist revision, media version, or resource revision number) instead of duplicating the full payload
request_id, route, client, client_ipRequest metadata for the operation
seq, prev_hash, hashThe entry's sequence number and cryptographic chain links

Values, redaction, and size limits:

  • Standard fields such as names, emails, addresses, URLs, and IDs are recorded as stored.
  • Secrets—including tokens, API keys, passwords, webhook or signing secrets, data source credentials, pairing codes, and receiver URLs that act as credentials—appear as (redacted) for both before and after, so secret rotations are logged without exposing either value.
  • Values larger than 1 KiB are replaced with their byte size and SHA-256 hash. Each entry stores up to 100 changed fields and 16 KiB total; truncated indicates when additional changes were omitted.
  • A playlist's pages and a media file's bytes are not copied; entries link to the corresponding revision instead.

Card data, key/value entries (including writes from webhooks and data sources), and Player telemetry are runtime data rather than configuration. They are not written to the audit log; the project event log records those writes instead.

Who can read it

Project owners and organization administrators can read a project's audit log in the dashboard. Agents and service clients with the project capability can read it through the API and CLI.

Organization-level changes are recorded in a separate organization audit log rather than in any project log. This includes changes to administrators, member invitations, domains, guest policy, the Library, billing settings, single sign-on and SCIM settings, and identity-provider user or group provisioning. Organization administrators can view it on the organization's Audit page in the dashboard or via GET /api/organizations/{org_id}/audit, which supports the same listing and export options as the project audit log.

Tamper resistance

Nothing writes, edits, or deletes an audit entry: there is no route for it. Each entry is linked to the preceding entry in its project by a SHA-256 hash computed over the previous entry's hash, its sequence position, and its content. Within roughly 15 seconds of a change, the entry carries its seq and hash.

screenrig audit head
screenrig audit verify
screenrig audit verify --anchor 128:3f2c0b6e9a4d81c7f5e0a2b4c6d8e0f1a3b5c7d9e1f30415263748596a7b8c9d

audit verify (GET /api/audit/verify) recomputes every hash from stored content and checks each link, seq continuity, and the chain head. If verification fails, it reports hash_mismatch, prev_mismatch, gap, head_mismatch, anchor_mismatch, or floor_mismatch for the failing entry and exits with code 13.

Each call verifies up to 5,000 entries (use --limit for smaller batches) and returns next_seq so you can continue with --from-seq. Pass --anchor SEQ:HASH using a chain head saved from an earlier export or audit head to prove that history up to that entry has neither changed nor been truncated.

Retention and deletion

Audit entries are retained for 400 days on every plan. Expired entries are pruned oldest first, and the chain records the new starting point (floor_seq and floor_hash) so any deletion elsewhere in the chain is still detected.

Deleting a project deletes its audit log as well. To retain a verifiable copy beyond a project's lifetime, run screenrig project export DIR, which writes the log to log/audit.jsonl and its chain head to log/audit-head.json, so the copy still verifies against its anchor.

Export

screenrig audit export --format csv --output audit.csv
screenrig audit export --format xlsx --since 2026-07-01T00:00:00Z --until 2026-10-01T00:00:00Z
screenrig audit export --format pdf --resource-type playlist --output playlist-changes.pdf

GET /api/audit?format=csv|xlsx|pdf exports the filtered audit log using the standard report renderer: one row per changed field, oldest first, covering the last 30 days unless since specifies otherwise, up to 50,000 rows (truncated indicates when additional rows were omitted). Each export includes the chain head and retention floor so any saved export can serve as an anchor for a later audit verify.

In the dashboard, the Audit tab provides CSV, Excel, and PDF buttons that export the currently filtered view.