Skip to main content
On this page

Audit log

The append-only audit log records sign-ins, sessions, configuration changes, automation runs, secret access and AI-agent tool calls. Events are stored in PostgreSQL. View them under Administration → Audit Log, query them through the REST API or send them to external systems through webhooks.

What is recorded

AreaEvent typesNotes
Authenticationtimeline.signin_completed, timeline.signin_rejectedLocal and SSO sign-ins. Metadata carries auth_method, the attempted identifier, and a reason_code on rejection.
Interactive sessionsconnection.session.created, .activated, .websocket.connected, .disconnected, .terminated, .failedFull lifecycle of SSH/RDP/VNC sessions — see Connections.
MCP tool callsmcp.tool.invokedEvery tool call made by an AI agent through the MCP server, including the access decision.
API tokensaccess_control.user_api_token.created, access_control.user_api_token.revokedToken issuance and revocation.
Playbooksplaybook.created, playbook.version.created, playbook.run_group.queued, playbook.run.completed, …The whole automation family — see Jobs and runs.
Inventoryinventory.tenant.created, .updated, .deletedInventory record changes.
Secret accesssecrets.resolveServer-side resolution of stored credentials. Secret values are never written to the log — see Secrets.
Sync mappingssync.mapping.created, .updated, .deletedExternal-source mapping changes — see Inventory sync.

Event fields

FieldMeaning
idTime-ordered UUIDv7
event_typeDotted event name, e.g. connection.session.terminated
actor_idUUID of the acting identity (nullable)
actor_kinduser, system, mcp_agent, webhook, service_principal, or playbook_job_token
target_type / target_idWhat the event acted on, e.g. connection_session, user_api_token, organization
metadataEvent-specific JSON: decisions, statuses, reason codes, protocol, tool name, correlation IDs
created_atRFC 3339 timestamp

The list endpoint additionally hydrates actor, actor_via (e.g. the API token a user acted through), target, and resource into {kind, id, label, secondary} references, so the UI shows names instead of raw UUIDs.

Example sign-in event:

{
  "id": "0197a2b4-9d31-7c5e-b1f0-3e8a6c2d4f10",
  "event_type": "timeline.signin_completed",
  "actor_kind": "user",
  "actor_id": "8f3c1a2e-5b6d-4e7f-9a0b-1c2d3e4f5a6b",
  "target_type": "organization",
  "target_id": "c2d4e6f8-0a1b-2c3d-4e5f-6a7b8c9d0e1f",
  "metadata": {
    "action_kind": "signin_completed",
    "result": "success",
    "auth_method": "local",
    "identifier": "owner@example.com"
  },
  "created_at": "2026-06-10T12:34:56Z"
}

Browsing and filtering

Open Administration → Audit Log. The toolbar offers:

  • Search — debounced free text matching event type, target type, IDs, and metadata.
  • Actor — typeahead picker over users.
  • Target — typeahead picker over audit targets, scoped to the selected target type.
  • Event type — dropdown of common event types.

Filters expands the advanced panel:

FilterValues
Target typeuser, user_api_token, connection_session, device, virtual_machine, the playbook* family, …
Resultallowed, denied, scope_denied, failed, succeeded, timed_out, …
MCP toolExact metadata.tool match
MCP tool groupssh, inventory, access_control, vnc_observe, vnc_control, …
MCP protocolssh, vnc
MCP riskread, rest, interactive_session, control
From / ToInclusive datetime range

Active filters render as removable chips. The Result column is derived from the event's metadata.decision, falling back to metadata.status. The eye button on a row opens Audit Detail with the raw event type and pretty-printed metadata JSON.

Access control

Reading the audit log requires VIEW_AUDIT on AUDIT_EVENT; without it the API returns 403. See Access control.

REST API

MethodPathPurpose
GET/api/v1/audit/eventsList events. Filters: q, event_type, actor_id, target_type, target_id, result, mcp_tool, mcp_tool_group, mcp_protocol, mcp_risk, created_from, created_to (RFC 3339), limit (default 100, max 1000), offset
GET/api/v1/audit/targetsTypeahead lookup of audit targets: target_type, search, limit (max 50)

The list response is a paginated envelope: {items, total, limit, offset}. See the API reference.

Webhook fan-out

After an event is stored, a background task sends it to matching webhooks. Delivery is best-effort and does not block audit recording.

For each event the dispatcher:

  1. Finds enabled subscriptions whose subscribed event type exactly matches event_type.
  2. Evaluates each subscription's optional condition set against the full event JSON.
  3. POSTs the event JSON to the subscription's target URL.

Delivery details:

  • Headers: Content-Type: application/json, X-Piping-Timestamp (Unix seconds), X-Piping-Nonce (UUID), and — when the subscription has a secret — X-Piping-Signature: sha256=<HMAC-SHA256> computed over <unix_seconds>.<body>.
  • Up to 3 attempts with increasing backoff and a 10-second timeout per attempt; the last HTTP status and error are stored on the subscription.
  • An SSRF guard refuses target URLs that resolve to private, loopback, or link-local addresses.

Subscription management and payload verification are covered on the Webhooks page.

Retention

Audit events remain in the PostgreSQL audit_event table until the operator deletes them. To configure retention:

  • Enforce it at the database level with a scheduled delete on created_at (the column is indexed).
  • Stream events continuously to your SIEM or log store through webhook subscriptions, so the trail survives any database-level trimming.

Tip: When investigating an incident, start with the Actor filter plus a From/To window, then drill into individual events via Audit Detail — the metadata JSON carries reason codes and correlation IDs.