Skip to contents

Parses all entries in an airgapllm JSONL audit log into a structured list with a companion summary tibble.

Usage

audit_log_read(path)

Arguments

path

Character scalar path to the JSONL audit log file.

Value

An S3 object of class "airgap_audit_log" containing path, entries (list of parsed records), and summary (tibble).

Examples

tmp_log <- tempfile(fileext = ".jsonl")
pf <- preflight_isolation_check(endpoint = "http://127.0.0.1:11434")
audit_log_append(tmp_log, pf)
#> <airgap_audit_entry> #1 [preflight_check]
#>   Run ID:       preflight_20261128T203807Z_c06b705b
#>   Timestamp:    2026-11-28T20:38:07Z
#>   Isolation:    PASS
#>   PII policy:   NA
#>   Prev hash:    GENESIS
#>   Entry hash:   sha256:448c97ea624a4ac6cee4eddec88e803621e198ef4da22cb7fbac5f1781fc7ece
audit_log_read(tmp_log)
#> <airgap_audit_log> (1 entries)
#>   Path: /tmp/RtmpcWDmac/file193d42c3451f.jsonl
#> # A tibble: 1 × 8
#>     seq timestamp       event_type run_id model_name isolation_status pii_policy
#>   <int> <chr>           <chr>      <chr>  <chr>      <chr>            <chr>     
#> 1     1 2026-11-28T20:… preflight… prefl… NA         PASS             NA        
#> # ℹ 1 more variable: entry_hash <chr>
unlink(tmp_log)