Goal
Answer who did what, when and why it was allowed or refused.Prerequisites
- Owner or Admin of the team.
Workflow
1
In team settings, open Audit, then Audit log.
2
Filter by action (for example database.*), Result (Allowed or Denied), Person or agent, Product, Resource and date range.
3
Choose Export, pick the dates and CSV or JSON.
4
To send entries to a webhook or SIEM, choose Set up in Events and create a rule on audit.*.
What is recorded
- Every allowed write, ask-first, notify and destructive action, and every refusal. Reads are not recorded.
- Each entry shows the time, who (person, token, agent connection or automation), the action key, the product, the resource, Allowed or Denied, via which role or policy, the IP address and a summary.
- Product records such as sandbox and database audits also appear as audit events.
Export and stream
- Export downloads a date range as team-audit-<date>.csv or .json. CSV columns: time, actor_kind, actor, action_key, product, resource_ref, decision, via, ip, summary.
- API: GET /api/v1/teams/{teamId}/audit with actor_kind, actor_id, product, action (a key or a prefix ending in *), resource, decision, from, to, cursor and limit. GET /api/v1/teams/{teamId}/audit/export?format=csv or json.
- Events audit.action.recorded and audit.access.denied carry the same entries to any Events target, signed and retried like other events.
Expected result
You can trace any change or refusal to a person, token, agent or automation, and the role or policy that applied.
Related guides
Who can access this? and unused access
See every person, token, agent and automation that can reach a resource and why, and remove access nobody has used in 90 days.
Events overview
Everything that happens across StackShift is recorded as an event. Rules send the events you choose to webhooks, functions, queues, agents, notifications or automations.