Skip to content

bifroest audit export

Verifies the selected journal, then exports events as JSON Lines in journal order.

1
bifroest audit export default

Syntax

Arguments

auditlogName

auditlogName selects a configured journal and defaults to default in the local CLI and integrated client. With --source, it labels the copied journal in exported records. It is not a segment path; a standalone delivered segment is not a complete journal source.

Flags

Includes general executable flags. Direct SSH supports only the command options noted above.

--configuration

Local repository configuration; defaults to the platform path. Cannot be combined with --source or @target.

--source

Complete copied local journal, including its signed head and required segments. Requires independent producer trust; no server configuration or signing private key is needed. Unavailable with @target.

--encryptionPublicKeyFile

Expected recipient for an encrypted offline --source. Required for keyless outer verification and when supplying multiple decryption identities. With one private key, its recipient can be derived instead. Unavailable with @target.

--decryptionIdentityFile

Local private key for encrypted confidential fields; repeatable. Used only with --with-sensitive. The client can use X-AuditPrivateKey; keys stay on the CLI machine. Unavailable over direct SSH.

--with-sensitive

bool = false

Include confidential fields. Encrypted journals additionally need the matching decryption key. Without this flag, supplied private keys are not loaded for event decryption.

--expectedProducerId

string

Independently trusted 64-hex signing producer ID. Configured local selection otherwise uses its signing key; copied sources require this flag. The integrated client requires it or X-ExpectedProducerId. Unavailable over direct SSH.

--output

File Path = "-"

JSONL destination file, or - for stdout. The immediate parent must already exist. Named output is published only after successful verification and destination checks; remote-client paths are local to the workstation. Unavailable over direct SSH.

--force

bool = false

Replace an existing named output. Protected destinations remain protected. Unavailable over direct SSH.

Output

One event with its origin and integrity metadata per JSON line. The default public event contains name, optional domain and outcome; --with-sensitive includes private fields. JSONL is an unsigned view of the original evidence. There is no --format selector.

Every selected source is verified before events are published. Events added during a live read may be absent from the result. Export has a 128 MiB JSONL output cap; use audit verify to verify a larger journal without exporting its events.

Examples

Export a configured journal

  1. Enable and use basic audit logging.
  2. Export its public view:

    1
    bifroest audit export default --output /srv/audit-evidence/public.jsonl
    

    Create the output directory beforehand and keep it outside managed storage.

Export confidential encrypted events on a workstation

Follow the encrypted-evidence guide to configure the server, trusted producer and local recipient key, then run:

1
2
3
bifroest @bifroest-admin audit export evidence \
  --with-sensitive \
  --output /srv/audit-evidence/sensitive.jsonl

For disconnected verification, use a complete copied journal with --source, as shown in the offline audit example.

Also accepted as audit decrypt.

Availability

linux darwin windows
/ / /

Invocation modes

Local CLI @target Direct SSH

Local invocation supports configured and copied journals. Client-side remote export requires auditlogs.download, including for redacted exports, because it downloads original signed evidence. Direct-SSH export requires auditlogs.events, plus auditlogs.download for sensitive output.

Direct SSH accepts an explicit auditlog name and --with-sensitive, writes JSONL to stdout and uses the service's configured trust. Sensitive output requires artifact-transfer permission; encrypted private fields require a workstation's client-side decryption instead.