Google Cloud: Audit log

The audit log records who did what in your organization. It is optional and off until an owner turns it on under Settings → Audit log; nothing is recorded…

The audit log records who did what in your organization. It is optional and off until an owner turns it on under Settings → Audit log; nothing is recorded before that. Owners and admins can read it, and export it as CSV or JSON lines.

Turning it on

Only an owner, signed in, can turn the audit log on or off (an API key cannot). Both are recorded: turning it off is the last event before the log stops. Turning it off does not delete what was already recorded.

How long events are kept

The console shows the last 90 days. Exports cover a year: events older than 90 days come from an archive in Amazon S3 that cannot be changed or deleted for a year after it is written (S3 Object Lock), after which they are deleted.

What is recorded

AreaEvents
Sign-insuccessful sign-ins (password, Google, single sign-on, two-factor), failed password attempts on an existing account, turning two-factor on or changing its device
Membersinvitations sent and revoked, people joining, role changes, removals, a member's two-factor reset, the organization's two-factor requirement
API keyskeys created and revoked
Databasescreate, change, resize, upgrade, replicas, start, stop, redeploy, engine version, maintenance window, persistence, delete
Networkallowed addresses, public access, private connectivity
Credentialsthe database password changed or re-synced, database users created, changed and deleted, ACL rules and roles created, changed and deleted
Snapshots, exports and importssnapshots taken and restored, exports, imports, backup destinations, retention
Single sign-onthe connection set up, changed, turned on or off, domains added, verified or removed
Cloud accountsconnected, verified, network or role changed, disconnected
Alertschannels and alerts created, changed, tested and deleted
Billing and creditbilling details and country, payments, credit redeemed, reservations

Changes made with an API key are recorded against the key (its prefix, such as kvdb_live_ab12), and changes made by an AI assistant through the KiviDB MCP server are marked via assistant.

To keep the log useful under heavy automation, an organization records up to a few hundred events a minute (300 on each of our API servers); anything over that is recorded as one event saying how many were left out. Repeated failed sign-ins to one account from one address are recorded once, with a count of the rest, every 15 minutes.

What is not recorded: the commands you send to a database and the data in it (keys, search queries, vector and semantic-cache entries), and reads. The log is about changes to your organization and its databases, not their contents.

What each event holds

  • When, to the millisecond, in UTC.
  • Who: the person's email address at the time, or the API key's prefix. Both stay readable after the person leaves or the key is revoked.
  • What: the action, such as database.resize or member.role_change, and whether it succeeded (failed sign-ins are recorded as failures).
  • On: the database, key, member or other thing acted on, with its id and its name at the time.
  • From: the IP address and the client's user agent.
  • Details: the settings the change asked for, such as the new size or role. Only settings that are safe to show are kept with their values. Passwords, secrets, webhook URLs, certificates and the like are never recorded; the log notes only that the field was set.

Filtering and export

Filter by kind of action, by who (an email address or a key prefix), and by date. CSV and JSON export what the filters select, up to 50,000 events at a time; for more, export in date ranges.

In a spreadsheet, a value that starts with =, +, - or @ is prefixed with ' so it is shown rather than run as a formula.

From the API

Read it with a session or an API key with the owner or admin role, for example to send it to your SIEM:

curl -H "Authorization: Bearer $KIVIDB_API_KEY" \
  "https://api.kividb.io/audit-log?action=member.&since=2026-10-01T00:00:00Z"
ParameterMeaning
actionan action, or the start of one: database. matches every database action
actoran email address or an API key prefix
targetthe id of what was acted on
since, untilISO 8601 times; since is inclusive, until is not
limitevents per page, 1 to 200 (default 50)
beforethe next_before value from the previous page

Events come newest first. A response with next_before set has more; pass it as before to get the next page.

GET /audit-log returns the last 90 days. GET /audit-log/export?format=csv (or format=jsonl) takes the same filters, covers a year, and returns a file. The x-kividb-truncated: true header means the range held more than 50,000 events; x-kividb-archive-incomplete: true means events older than 90 days could not be read this time, so try again.

GET /audit-log/settings says whether the log is on.

An API key limited to some databases cannot read the log, because the log covers the whole organization.