Audit log

What the audit log records, who can read it, how to filter and export it, and what each entry contains.

The audit log records every change to an organization's databases, credentials and members: who made it, when, and whether it succeeded. Document edits are not recorded there, and entries never contain document content or secrets.

Who can read it

Owners and admins. Members cannot open it, and API keys cannot read it: it is not part of the management API.

Where to find it

  • Settings → Audit Log in the organization shows everything.
  • A database's Activity page shows the entries about that database, its keys and the API keys scoped to it.

Entries are listed newest first. Show more loads older ones.

Filtering

  • Email or key name: entries made by a member whose email, or a key whose name, contains what you type. Case does not matter.
  • About: entries about one kind of thing.
  • From and Until: entries of those days, both included, in your browser's time zone. Either can be left empty; a period that ends before it begins is not read.
AboutCovers
DatabasesCreating, renaming, suspending, resuming, deleting and restoring databases
Database keysCreating, rotating and revoking database keys
Token keysRegistering and revoking token keys
CollectionsMaking and removing collections; pushing, activating and aborting migrations
API keysCreating, revoking and replacing the secret of API keys
OrganizationCreating, renaming and deleting the organization
MembersInviting and removing members, role changes, leaving
InvitationsAccepting, declining and cancelling invitations

A database's Activity page offers only the first four.

What an entry contains

ColumnMeaning
WhenThe time of the entry
WhoThe actor, and whether it was a Member, an API key or the System
ActionWhat was done, for example database_key.rotate
OutcomeAccepted, Succeeded or Failed
TargetThe name or ID of what the entry is about

Actors

ActorShown as
A memberTheir email address
An API keyThe key's name
SystemWork the service did itself, such as the steps of an operation

Outcomes

OutcomeMeaning
AcceptedA request was recorded and an operation will carry it out, or it was sent to the database
SucceededThe change happened
FailedThe change did not happen

A request that starts an operation therefore appears more than once: first as accepted, by whoever asked, and later as what the operation did, by the system. The entries share the operation's ID, which the export includes.

A change of a database's collections appears twice, both by whoever asked: accepted when it was sent to the database, then succeeded or failed with the database's answer (its status, or why there was none). An accepted entry with no answer after it means the answer was lost: read the collection to see whether the change happened. The entries name the collection and the migration, never a schema or an artifact.

Actions

An action is named <subject>.<verb>. The ones written on behalf of a member or an API key:

SubjectActions
databasecreate, rename, suspend, resume, delete, restore, restore_backup, retry, revoke_tokens
database_keycreate, rotate, revoke, revoke_unmanaged (a key not made here)
token_keyregister, revoke, revoke_unmanaged (a token key not made here)
collectionput, remove
migrationpush, activate, abort
management_keycreate, reissue, revoke
organizationcreate, update, delete
memberinvite, update_role, remove, leave
invitationaccept, reject, cancel

The system adds entries as operations progress, such as database.ready, database.suspended, database.resumed, database.restored, database.restored_from_backup, database.purged and database.deleted.

When the service compares a database's keys with the database itself, it records what it finds as credential reconciliation: database_key.revoked_in_cell and token_key.revoked_in_cell for a key found revoked or removed in the database (with an admin key), database_key.seen_live_again and token_key.seen_live_again when an earlier comparison was wrong, and database_key.revoke or token_key.revoke when it revokes in the database a key this service had revoked but the database still held.

If a key had to be revoked in the database itself while this service was unavailable (a leaked key, revoked by one of our maintainers), the entry that records it revoked names our record of that action (breakGlass in its details: the record's id and hash), or a later database_key.revoked_by_break_glass or token_key.revoked_by_break_glass entry does. That later entry's actor is the maintainer who read our record in, and its details also say when the key was revoked (takenAt). Nothing else about the incident is in your log.

Exporting

Export downloads the entries currently loaded as audit-log.csv. To export further back, choose Show more until the entries you need are loaded, then export.

The file has one row per entry with these columns:

when,actor_type,actor,action,outcome,target_type,target_id,database_id,operation_id,details

actor_type is user, management_key or system. details holds the entry's extra fields as JSON, for example the old and new name of a renamed database.

Reading the log after a deletion

A deleted database is no longer returned by the dashboard or the API, but the entries about it stay in the organization's audit log.