Workspace Admin or DBA can view the audit logs of the workspace.

Filter audit logs

You can filter the audit logs by different conditions.

You can also specify a time range.

Export audit logs

If you want to export the audit logs to an external system such as S3, refer Audit Log API.

You can also export the audit logs.

Retention

Bytebase does not purge the audit logs. If you want to purge the audit logs, please locate the audit_log table in the metadata database and delete manually.


DELETE FROM public.audit_log
WHERE created_ts < EXTRACT(EPOCH FROM NOW() - INTERVAL '3 months');