Skip to main content
pgconsole emits audit logs as JSON lines to stdout, allowing you to capture and process them with your existing log infrastructure.

Events

Log Format

All audit events are JSON objects with a common structure:

Common Fields

auth.login

auth.logout

sql.execute

data.export

Capturing Logs

Audit logs are written to stdout alongside other server output. Filter by "type":"audit" to capture audit events only: