turbopuffer provides audit logs for customers on Scale and Enterprise plans. Contact us to enable audit logs for your organization.
Audit logs have a 30-day retention period by default, which can be extended on request.
Audit log events can be streamed to an external destination. Supported destinations include SIEM providers (Datadog, Splunk, Microsoft Sentinel), object storage (AWS S3, Google Cloud Storage), and custom HTTPS endpoints. Log streaming is available on Scale and Enterprise plans and can be configured from the customer settings page.
A user creates an API key:
{
"action": "api-key-created",
"occurred_at": "2026-04-13T14:22:08Z",
"actor": {
"type": "user",
"id": "V1StGXR8_Z5jdHi6B-myTq",
"name": "ada@example.com"
},
"targets": [
{
"type": "api-key",
"id": "8fW3zNcY6tRo1kGpLvAe2b/production",
"name": "production",
"metadata": { "suffix": "a1b2" }
}
],
"context": { "location": "203.0.113.42" },
"metadata": {
"session_id": "sess_lK9eT0vB3xYq2pNwA4fJ7"
}
}
A user marks an API key as expired:
{
"action": "api-key-marked-as-expired",
"occurred_at": "2026-04-13T14:25:11Z",
"actor": {
"type": "user",
"id": "V1StGXR8_Z5jdHi6B-myTq",
"name": "ada@example.com"
},
"targets": [
{
"type": "api-key",
"id": "8fW3zNcY6tRo1kGpLvAe2b/production",
"name": "production",
"metadata": { "suffix": "a1b2" }
}
],
"context": { "location": "203.0.113.42" },
"metadata": {
"session_id": "sess_lK9eT0vB3xYq2pNwA4fJ7"
}
}
Each audit log event includes the action that was taken, the time it occurred_at, the
actor who performed it, the targets that were affected, the client IP
in context.location, and optional metadata about the session.
type AuditLogEvent = {
action: string;
occurred_at: string; // ISO 8601 datetime
actor: Actor;
targets: Target[];
context: {
location: string; // client IP address
};
metadata: {
session_id?: string;
impersonator?: string; // email of turbopuffer admin acting on behalf of
// the customer (requires customer authorization)
impersonation_reason?: string;
};
};
type Actor = User | System;
type Target = User | ApiKey | Invitation | Session;
type User = {
type: "user";
id: string;
name: string; // email address
};
type ApiKey = {
type: "api-key";
id: string;
name: string; // display name of the key
metadata: {
suffix: string; // last 4 characters of the key
};
};
type Invitation = {
type: "invitation";
id: string;
name: string; // email address of invited user
metadata?: {
invited_user_id: string;
};
};
type Session = {
type: "session";
id: string;
name: string; // session ID
metadata: {
user_agent: string;
impersonator?: string; // email of turbopuffer admin acting on behalf of
// the customer (requires customer authorization)
impersonation_reason?: string;
};
};
A special actor representing actions performed automatically rather than by a specific user.
type System = {
type: "system";
id: "system";
name: "System";
};