Inspect Turso Cloud Audit Logs Using the CLI

Jamie BartonJamie Barton
Cover image for Inspect Turso Cloud Audit Logs Using the CLI

Turso Cloud users on paid plans have access to Audit Logs, with varying retention periods, but until today, they were only visible in the Turso Cloud Dashboard.

Starting today, you can inspect Turso Cloud Audit Logs using the CLI.

When you're ready to inspect your audit logs, make sure to update the Turso CLI, and run the following command using the Turso CLI:

turso update
turso org audit-logs list

This command returns a simple overview of what's recently happened with your personal or team account:

DATE                    AUTHOR     CODE                   ORIGIN
2025-04-23 13:14:35     notrab     group-token-create     cli
2025-04-22 20:31:44     notrab     db-token-create        dashboard
2025-04-21 11:07:29     notrab     db-create              dashboard

If you want to get more details about the logs, you can pass the --verbose flag:

turso org audit-logs list --verbose

You'll now have a detailed look at what exactly happened, which can be useful to see the state of resources at the time they were audited:

2025-04-18T14:25:24.455533254Z: notrab via dashboard performed db-token-create
  Data:
    Name: 01c8a64bac99cdbe115144ef369d374d
    DbId: 1b3f07f6-d91e-4bd9-8f7f-f83fd8108e3b

2025-04-11T10:20:28.605164733Z: notrab via cli performed group-token-create
  Data:
    DeleteProtection: true
    Name: default

#Try it now

If you're on a paid plan, you can start inspecting audit logs right away once you update the Turso CLI.

We're always working to improve Turso Cloud based on your feedback. Join us on Discord to share your thoughts and experiences with Audit Logs!

scarf