Skip to main content
Audit logs provide an immutable record of every significant action taken in your Raven organization. They track who did what, when, and to which resource — giving you full visibility for security reviews, compliance audits, and incident investigation.

What Gets Logged

Every create, update, and delete operation across your organization is automatically recorded.
ActionDescription
createA new resource was created (provider, key, guardrail, etc.)
updateAn existing resource was modified
deleteA resource was removed
enableA resource was enabled
disableA resource was disabled
rotateA virtual key was rotated
inviteA member was invited to the organization
revokeA key or agent identity was revoked

Actor Tracking

Every audit log entry records the actor who performed the action:
  • Actor ID — The authenticated user who initiated the action
  • Timestamp — When the action occurred (with timezone)
  • Organization — Which organization the action belongs to
  • Metadata — Additional context about the change (old/new values, request details)
If a user is deleted, the audit log retains the entry with a null actor reference, preserving the historical record without the personal identifier.

Resource Types

Audit logs cover every resource type in Raven.
Resource TypeExamples
providerAdded OpenAI provider, disabled Anthropic
virtual_keyCreated new key, rotated key, set rate limit
guardrailCreated PII detection rule, updated priority
budgetSet monthly budget, updated alert threshold
webhookRegistered webhook endpoint, disabled webhook
routing_ruleCreated cost-optimized routing, updated fallback
teamCreated team, added member
organizationUpdated org settings
memberInvited member, changed role

Viewing Audit Logs

Dashboard

Navigate to Admin > Audit Logs in the dashboard to browse the audit trail. You can filter by:
  • Resource type — View only provider changes, key operations, etc.
  • Action — Filter to just creates, updates, or deletes
  • Actor — See all actions by a specific team member
  • Date range — Focus on a specific time period

Audit Log Entry Structure

Each audit log entry contains:
{
  "id": "clx1abc2def",
  "action": "create",
  "resourceType": "guardrail",
  "resourceId": "clx2ghi3jkl",
  "actorId": "user_abc123",
  "metadata": {
    "name": "Block PII",
    "type": "pii_detection",
    "action": "block"
  },
  "organizationId": "org_xyz789",
  "createdAt": "2026-03-15T10:30:00Z"
}

Indexing

Audit logs are indexed for fast querying on four dimensions:
IndexUse Case
Organization + Created AtBrowse recent logs for an org
Organization + ActionFilter by action type
Organization + Resource TypeFilter by resource category
Actor IDFind all actions by a specific user

Exporting

Audit logs can be exported for external analysis or long-term archival:
  • JSON export — Download the full audit trail as a JSON file
  • CSV export — Export to CSV for spreadsheet analysis
  • API pagination — Programmatically iterate through all records using cursor-based pagination
Audit logs are append-only and immutable. Once an entry is created, it cannot be modified or deleted — even by organization admins.