Retention, storage and audit anchors
How long data is kept, how to check storage, and how to anchor the audit chain off host.
Verified against v1.0.0-rc.1 · sources
On this page
Retention#
| Data | Kept for |
|---|---|
| Events | Hot tier for DRILLO_HOT_DAYS (default 1), then the cold volume until DRILLO_RETENTION_DAYS (default 30) |
| Incident context | DRILLO_RETENTION_DAYS |
| Alert events | 400 days |
| MCP audit | 400 days |
| Ingest stats | 90 days |
drillo migrate reads the two environment variables and requires plain integers with 1 <= DRILLO_HOT_DAYS <= DRILLO_RETENTION_DAYS. Check the current state with GET /api/v1/storage/status (needs the storage permission).
Audit anchors#
The audit log is tamper-evident back to the latest off-host anchor. It is not tamper-proof.
drillo audit-anchor --key <sk-file> --out <dir>writes one signed anchor file chained to the previous one. Exit code 3 withstatus: head_mismatchmeans the two stores disagree.drillo audit-verify --anchors <dir> --pubkey <pin>recomputes the chain and checks every anchor. Exit 1 on failure.drillo evidence-export ... [--anchor-dir <dir>]records the audit head and can write an anchor first.
Operate it like this:
- Generate a dedicated key with
drillo keygen --out Pon an operator machine, never on the API host. PinP.pub. - Run
audit-anchorhourly as a user other than the API user. The cadence is your exposure window. - Copy the anchor directory off host. The installer does not do this.
- A stolen key lets an attacker forge history and anchors. Deleting the newest anchor is detectable only against an off-host copy.
The MCP audit chain (mcp) is covered by the same anchor run.