Overview
defenseclaw audit — Audit trail helpers (activity logging).
Reference
Synopsis
defenseclaw audit [OPTIONS]
Subcommands
| Subcommand | Description |
|---|---|
log-activity | Record a config or operator mutation via Logger.log_activity. |
Description
Audit trail helpers (activity logging)
defenseclaw audit log-activity
Record a config or operator mutation via Logger.log_activity
Options
| Flag | Type | Default | Env var | Required | Description |
|---|---|---|---|---|---|
--payload-file | file | Sentinel.UNSET | — | yes | JSON payload written by the TUI on config save (before/after snapshots). |
Usage
Record an activity event
defenseclaw audit log-activity --payload-file activity-event.json
The Python CLI currently exposes activity logging. Exporting the audit database is handled by the gateway binary:
defenseclaw-gateway audit export --output audit.jsonl --include-activity
See Audit store for the persisted schema.