Docs

Audit log

What the audit log records, how to search it, how long it is kept, how to check it hasn't been altered and how it differs from request logs and version history.

Updated Nov 25, 2026

The audit log is the record of who changed what: sign-ins, policy and table changes, deletions, restores and the rest of the events below, with the actor, the time and where it came from. Open it under Logs & Audit › Audit.

RecordAnswersWhere
Audit log (this page)Who changed what, and when?Logs & Audit › Audit
Request logsWhich requests came in, with status and timing?Observability, Logs & Audit — Logs and log drains
Version historyWhat did the schema, policies or functions look like before, and can I go back?Version history: see, undo and restore changes
Migration historyWhich migrations ran, in which order?Migrations

#What is recorded

AreaEvents
Sign-inauth.login, auth.register, auth.logout
Organizations and projectsnode.created, node.updated, node.deleted; memberships as edge.created, edge.deleted
Access policiespolicy.created, policy.updated, policy.deleted, policy.evaluated
Tablestable.created, table.dropped; row changes row.inserted, row.updated, row.deleted where recorded
Version historytimeline.spawned, timeline.jumped, timeline.deleted, snapshot.created, snapshot.restored

Each entry has the event type, the part of Sovaria that recorded it (service), the actor, the time and the details of the change. Security-relevant account events (new devices, password and two-factor changes) are also emailed to the person concerned.

  • Focus narrows to errors, security, policy, functions or data events; Source and Event type filter further.
  • Select entries (Shift-click for a range) to Copy as JSON or Download them.
  • Stream logs to your own tools continuously with log drains — Logs and log drains.

Export the whole log

Export CSV on the Audit page exports the current project. For the whole organization (what auditors ask for), owners and admins use Organization › Compliance › Export audit log, the CLI or the API. An export covers your plan's retention window, oldest entry first, with each entry's hashes so the chain can be checked offline. Every export is itself written to the log as audit.exported (who, which filters, how many rows).

FilterWhat it keeps
since, untilA time window (ISO 8601). A value that isn't a timestamp is refused with 400.
event_type, event_type_prefix, actor_id, source, resource_id, project_id, env_idOne kind of event, one person, one service, one resource, one project or environment.
phi_only=trueOnly requests to projects marked as holding PHI: the HIPAA access log (HIPAA mode and PHI projects).
staff_access_only=trueOnly Sovaria staff viewing your data under a time-limited support grant.
after_seqOne call returns at most 100,000 entries. A longer export answers with X-Sovaria-Export-Truncated: true and X-Sovaria-Export-Next-After-Seq: ask again with after_seq set to it. The console and sov compliance audit-log fetch every page into one file.
sov compliance audit-log -o audit.csv                         # whole organization, CSV
sov compliance audit-log --format json --since 2026-10-01T00:00:00Z -o audit.json
sov audit verify                                               # check the chain

With a project API key

A project API key (the service-role key, a custom key, or a function's own key) reads and exports its own project's entries only: asking for another project (project_id) answers 403, and without a filter it gets just its project. Keys can add their own events (POST /api/v1/audit/, recorded under the key) but never hide or restore entries (403): what the log shows is an owner's or admin's decision, made from the console. For the organization's whole log, use a member's session (owners and admins, or anyone with logs.read).

#Tamper evidence

Entries are chained: each one includes a hash of the one before, so changing or removing an entry breaks the chain. Verify on the Audit page (or GET /api/v1/audit/verify) recomputes the chain and reports whether it is intact.

curl -s "https://<project-ref>.sovarias.in/api/v1/audit/verify" -H "Authorization: Bearer $TOKEN"
curl -s "https://<project-ref>.sovarias.in/api/v1/audit/count" -H "Authorization: Bearer $TOKEN"

#How long entries are kept

By plan; with HIPAA mode on, audit entries are kept for six years whatever the plan (HIPAA mode and PHI projects).

FreeProUltraTeamEnterprise
Audit log retention1 day7 days30 days365 days365 days
Audit log retention while HIPAA mode is on2190 days2190 days2190 days2190 days2190 days

#Who can see it

Members with logs.read — every built-in role, including Viewer (Organizations, members and roles). App users never see it.

#Coming from Firebase or Supabase?

PlatformWhat this is called there
FirebaseCloud Audit Logs
SupabaseSupabase audit logs
SovariaAudit log

Moving an existing app? Migrate from Supabase or Firebase imports users (with their passwords), data, files and rules.