audit_logs
Description
Exposes the audit log for all actions performed within the organization. Use this table for security auditing, compliance reporting, and change tracking. Requires USAGE privilege on the organization. Results are returned in chronological order. For large organizations, use WHERE event_ts > ... to filter by time range.
Syntax
SELECT * FROM deltastream.sys."audit_logs";Columns
organization_id
VARCHAR
No
The unique identifier of the organization this resource belongs to.
object_type
VARCHAR
No
The type of resource the action was performed on, e.g. role, store, relation, query.
object_fqn
VARCHAR
No
The fully qualified name of the resource the action was performed on.
action_name
VARCHAR
No
Name of the action performed, e.g. created, updated, deleted.
action_description
VARCHAR
No
Human-readable description of the action.
actor_role
VARCHAR
No
The role that performed the action.
actor_role_deleted
BOOLEAN
No
Whether the actor role has since been deleted.
actor_user
VARCHAR
No
The user who performed the action.
event_ts
TIMESTAMP_LTZ
No
Timestamp when the action occurred.
Examples
Filter audit events by resource type:
Filter audit events by actor:
See Also
Last updated

