Skip to content

bifroest audit events

Shows the newest matching audit events after verifying the journal's captured signed committed state.

1
bifroest audit events default --limit=20

Syntax

bifroest audit events [flags] <name>

Arguments

name

name is the required configured auditlog name. This command queries repositories; it does not accept an offline --source directory. Use audit export for a copied journal.

Flags

Includes all general flags.

--configuration

Local configuration file; defaults to the platform path. Unavailable with @target or direct SSH.

--format

string = "table"

Result format: table, json, yaml or cbor.

--name

string

Exact event-name filter. See the event reference.

--flow

string

Exact flow-name filter; requires --with-sensitive because the flow is confidential event data.

--since

Inclusive start time in RFC 3339 format, for example 2026-01-02T12:00:00Z.

--until

Inclusive end time in RFC 3339 format.

--limit

uint = 100

Number of newest matches to return. 0 selects all matches, subject to the result limits below. Name, flow and time filters are applied before this selection.

--with-sensitive

bool = false

Include confidential fields. Encrypted journals need a matching local decryption key for this view.

--decryptionIdentityFile

Local private-key file for encrypted private fields; repeatable. Available locally and through @target, not direct SSH. Remote keys are only accepted with --with-sensitive; X-AuditPrivateKey supplies the client default.

--expectedProducerId

string

Independently trusted producer ID for sensitive @target queries. Requires --with-sensitive; alternatively provision X-ExpectedProducerId in the SSH configuration. Local queries use the configured signing identity.

Output

The default table shows time, event name, domain, outcome and record ID, plus flow when sensitive output is requested. Structured output contains events with their timestamps and origin metadata. Results preserve journal order within the selected newest matches.

Journal verification includes events excluded by the filters. A selection is limited to 250,000 events and 64 MiB of event data. Exceeding a limit fails the command; narrow the filters or lower --limit in that case. --limit=0 does not disable these bounds.

Examples

Query events after enabling an audit log

  1. Configure and use basic audit logging.
  2. Query public events from that configured journal:

    1
    bifroest audit events default --limit=20 --format=json
    
  3. Narrow the query to a recorded event name and time window:

    1
    2
    3
    4
    5
    bifroest audit events default \
      --name=connection.closed \
      --since=2026-01-02T12:00:00Z \
      --until=2026-01-02T13:00:00Z \
      --limit=50
    

    Choose times that cover the generated events. For encrypted, sensitive remote queries, follow the workstation verification guide.

Availability

linux darwin windows
/ / /

Invocation modes

Local CLI @target Direct SSH

Public remote queries require auditlogs.events. Sensitive queries require auditlogs.download; the integrated client downloads and verifies the journal locally. Direct-SSH sensitive queries require both rights. Direct SSH can read clear private fields but cannot use a workstation's decryption key.