# kosa8 audit

Inspect what was done, by whom

Every state-changing action is appended to a hash-chained log at
~/.kosa8/audit.jsonl, tagged with whether a human or an agent did it.
`kosa8 audit verify` proves the log has not been edited.

`kosa8 audit forward` ships it to a SIEM, and `kosa8 audit prune` applies
local retention without breaking the chain; kosa8d does both on its own
once ~/.kosa8/audit-config.json configures them.

## Example

```
  kosa8 audit ls
  kosa8 audit verify
  kosa8 audit export --format cef > audit.cef
```

## Subcommands

- [`kosa8 audit export`](https://docs.kosa8.com/reference/audit-export.md): Export the full audit log for a SIEM (--format jsonl|cef)
- [`kosa8 audit forward`](https://docs.kosa8.com/reference/audit-forward.md): Ship audit entries to the configured SIEM sinks (syslog, Splunk HEC, HTTPS)
- [`kosa8 audit key`](https://docs.kosa8.com/reference/audit-key.md): Print the public keys that sign the audit log
- [`kosa8 audit ls`](https://docs.kosa8.com/reference/audit-ls.md): Show recent audited actions
- [`kosa8 audit prune`](https://docs.kosa8.com/reference/audit-prune.md): Apply the retention policy now: seal old entries and remove them from the live log
- [`kosa8 audit status`](https://docs.kosa8.com/reference/audit-status.md): Show where audit entries are forwarded, how far each sink has got, and retention
- [`kosa8 audit verify`](https://docs.kosa8.com/reference/audit-verify.md): Check that the audit log has not been altered

---
Source: https://docs.kosa8.com/reference/audit/
