Skip to main content
Workspace Admin or DBA can view the audit logs of the workspace. overview

Filter audit logs

You can filter the audit logs by different conditions. filter You can also specify a time range. filter-date

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. filter-date

Emit audit logs to stdout

Bytebase can emit audit logs to stdout, allowing seamless integration with log aggregation and SIEM systems such as Datadog, Splunk, Elastic, Loki, CloudWatch, and GCP Logging—without using the API. Go to Settings -> General -> Audit Log Export, and enable Enable audit logging to stdout. Once enabled, audit events will appear in the standard output stream of your Bytebase service.

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. audit-log-table

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