superapp
BackendAdmin UI

Audit Log

Filter and inspect every query that passes through the engine — by operation, status, user, and more.

Chat in Claude

The audit log records every query that passes through the engine. Filter by operation, status, or user to investigate specific activity. Expand any entry to see the full SQL query, parameters, and execution context.

Audit Log8 entries

Click any row to expand it and see the full query, user details, IP address, and role. Use the filters at the top to narrow down by operation type, success/error status, or user email.

What gets logged

Every request through the engine creates an audit entry with these fields:

FieldDescription
timestampWhen the request was made
user_idAuthenticated user ID
tableTarget table (e.g., main.orders)
operationselect, insert, update, or delete
queryGenerated SQL (if logQuery enabled)
paramsQuery parameters (if logParams enabled)
duration_msExecution time (if logDuration enabled)
ip_addressClient IP address
roleUser's role at time of request
statussuccess or error

Querying the audit log

The audit log is queryable via the admin API using your master key:

# Recent entries
curl -H "Authorization: Bearer $MASTER_KEY" \
  https://myapp.com/admin/api/audit?limit=100

# Filter by user
curl -H "Authorization: Bearer $MASTER_KEY" \
  https://myapp.com/admin/api/audit?user_id=usr_123

# Filter by table and operation
curl -H "Authorization: Bearer $MASTER_KEY" \
  https://myapp.com/admin/api/audit?table=main.orders&operation=delete

Retention

Audit logs are auto-deleted based on the retention period configured in Limits & Security. Common settings:

RetentionUse case
7dDevelopment — quick debugging
30dStaging — catch issues before production
90dProduction — standard compliance
365d / 1yRegulated industries — long-term audit trail

PII in parameters

If logParams is enabled, query parameters are stored in plain text. This may include user-submitted data. Consider disabling logParams in production or reducing the retention period.

See Audit Logging for the full configuration reference.

On this page