audit_log
Query a tamper-evident audit log to investigate who accessed a secret key recently, showing timestamp, action, key, and detail for each event. Use filters for key or action to narrow results.
Instructions
[audit] Query the q-ring audit log — a tamper-evident record of every read/write/delete touching a secret. Use to investigate 'who accessed KEY recently?' or to feed an agent the access timeline for a specific credential; prefer detect_anomalies for automated unusual-pattern detection and health_check for decay-state-plus-anomalies in one call. Read-only. Returns one line per event in chronological order, formatted timestamp | action | key | [scope] | env:NAME | detail. Returns 'No audit events found' when the filter matches nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Limit to events touching this exact key. Omit for the full log. | |
| limit | No | Maximum events to return, newest first. Defaults to 20. Increase for deeper investigations. | |
| action | No | Limit to a single action verb (e.g. 'read' to see only reads). Omit for all actions. |