Skip to main content
Omni records an audit log of all significant actions taken within an instance, including resource creation, updates, deletions, and access to Kubernetes and Talos clusters. Audit logs are useful for security reviews, compliance requirements, and investigating unexpected changes in your environment. Each log entry captures who performed the action, when it occurred, what resource was affected, and session details such as IP address, user role, and email. Audit logs are enabled by default on both Omni SaaS and self-hosted Omni.

Configure audit logs (self-hosted)

On self-hosted Omni, audit log entries are stored in the Omni SQLite database, the file set with --sqlite-storage-path. Omni removes entries older than the retention period, 30 days by default. The following flags change this behavior when starting Omni: The same settings are available under logs.audit in the Omni configuration file. See the Omni configuration reference for all audit log options.

Access the audit log

Audit logs can be accessed through the Omni UI or via omnictl. Access requires the Auditor or Admin role.
Audit log access is granted by exact role rather than by seniority. The Operator role does not include it, even though it is otherwise more privileged than Auditor. Use Auditor for accounts that only need to read the audit log, such as an audit log exporter, so they do not need full Admin access.
To print the entries of the last 29 days to stdout, run:
To keep the command running and print new entries as they are written, add --follow:
With --follow, the output starts at the newest entry. To include earlier entries, add --since with a duration, such as 2h for the last two hours:
--follow cannot be combined with dates or with the filters below.To retrieve entries for a date range, provide start and end dates in YYYY-MM-DD format, interpreted in the time zone of the Omni server:
The range starts at the beginning of the start date and stops at the beginning of the end date, so entries from the end date itself are not included. For example, to retrieve the entries for the first week of August 2024, use 2024-08-08 as the end date:
To narrow the output, filter by --actor, --event-type, --cluster-id, or --resource-id. For example, to list the resources destroyed by one user:
The CLI method is preferable for large audit logs or when piping output to a search or filtering tool such as jq, as it streams directly to stdout without buffering the entire log in memory.

Audit log format

omnictl audit-log prints entries in JSONL format, one JSON object per line, where each object represents a single audit event. The following is an example log entry, formatted for readability:

Top-level fields

Every audit log entry has the following top-level fields:

Event types

The event_type field takes one of the following values:

Event data fields

The event_data object contains at least a session field, plus one or more resource-specific fields depending on the event type.

session

The session field describes the user session associated with the event.

Client address behind a proxy

When Omni runs behind a reverse proxy or load balancer, client_address shows the client’s real address only if the proxy connects to Omni from a private IP address. If the proxy connects from a public IP address, as some cloud load balancers do, client_address shows the proxy’s address instead.

Resource-specific fields

The following fields may appear in event_data depending on the resource type involved:

talos_access

The talos_access field is present on talos_access events and contains:

k8s_access

The k8s_access field is present on k8s_access events and contains:

Supported resources

The following resource types are recorded in the audit log: In addition to resource operations, Omni also logs kubectl access to Kubernetes clusters and direct access to Talos nodes via talosctl.

Export audit logs

For a one-off export, omnictl audit-log streams to stdout and pipes into any external tool. Without arguments, it covers the last 29 days. To export every entry Omni still keeps, set --since to a duration at least as long as the retention period, such as 720h for the default 30 days:
To keep audit events flowing into a log aggregation or SIEM system continuously, use the audit log exporter, which follows the audit log and resumes where it left off across restarts. See Export Audit Logs.