Audit logs
The record of who did what in the workspace, with the values before and after each change. summary list sums up the activity of the last hours: total, most frequent actions and latest records.
| Command | HTTP | Description |
|---|---|---|
audit-logs list | GET /v1/audit_logs | List audit logs |
audit-logs get | GET /v1/audit_logs/{id} | Get an audit log |
audit-logs summary list | GET /v1/audit_logs/summary | Audit activity summary |
Examples
--params carries query, path and header parameters (id, page, filters, X-Workspace-Id); --json carries the request body; --fields limits which fields come back — worth using on every list/get to save context. See Global flags for the full reference.
# List audit logs
kobana dashboards audit-logs list \
--params '{"action": "update", "resource_type": "portal_user"}' \
--fields "id,user_email,action,resource_name,created_at"
# Audit activity summary
kobana dashboards audit-logs summary list --params '{"hours": 24}'
Next steps
- Events
- Schema introspection — every parameter this resource accepts.