Skip to main content

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.

CommandHTTPDescription
audit-logs listGET /v1/audit_logsList audit logs
audit-logs getGET /v1/audit_logs/{id}Get an audit log
audit-logs summary listGET /v1/audit_logs/summaryAudit 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​