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
| Area | Event types | Notes |
|---|---|---|
| Authentication | timeline.signin_completed, timeline.signin_rejected | Local and SSO sign-ins. Metadata carries auth_method, the attempted identifier, and a reason_code on rejection. |
| Interactive sessions | connection.session.created, .activated, .websocket.connected, .disconnected, .terminated, .failed | Full lifecycle of SSH/RDP/VNC sessions — see Connections. |
| MCP tool calls | mcp.tool.invoked | Every tool call made by an AI agent through the MCP server, including the access decision. |
| API tokens | access_control.user_api_token.created, access_control.user_api_token.revoked | Token issuance and revocation. |
| Playbooks | playbook.created, playbook.version.created, playbook.run_group.queued, playbook.run.completed, … | The whole automation family — see Jobs and runs. |
| Inventory | inventory.tenant.created, .updated, .deleted | Inventory record changes. |
| Secret access | secrets.resolve | Server-side resolution of stored credentials. Secret values are never written to the log — see Secrets. |
| Sync mappings | sync.mapping.created, .updated, .deleted | External-source mapping changes — see Inventory sync. |
Event fields
| Field | Meaning |
|---|---|
id | Time-ordered UUIDv7 |
event_type | Dotted event name, e.g. connection.session.terminated |
actor_id | UUID of the acting identity (nullable) |
actor_kind | user, system, mcp_agent, webhook, service_principal, or playbook_job_token |
target_type / target_id | What the event acted on, e.g. connection_session, user_api_token, organization |
metadata | Event-specific JSON: decisions, statuses, reason codes, protocol, tool name, correlation IDs |
created_at | RFC 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:
| Filter | Values |
|---|---|
| Target type | user, user_api_token, connection_session, device, virtual_machine, the playbook* family, … |
| Result | allowed, denied, scope_denied, failed, succeeded, timed_out, … |
| MCP tool | Exact metadata.tool match |
| MCP tool group | ssh, inventory, access_control, vnc_observe, vnc_control, … |
| MCP protocol | ssh, vnc |
| MCP risk | read, rest, interactive_session, control |
| From / To | Inclusive 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
| Method | Path | Purpose |
|---|---|---|
GET | /api/v1/audit/events | List 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/targets | Typeahead 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:
- Finds enabled subscriptions whose subscribed event type exactly matches
event_type. - Evaluates each subscription's optional condition set against the full event JSON.
- 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.