Get PostgreSQL database logs
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The Ubicloud location/region
"eu-central-h1"
Postgres database ID or name Resource ID or name
^[a-z0-9](?:[a-z0-9\-]{0,61}[a-z0-9])?$ID of the project
^pj[0-9a-hj-km-np-tv-z]{24}$"pjkkmx0f2vke4h36nk9cm8v8q0"
Query Parameters
Start time for log query (rfc3339 format, default 30 minutes ago)
"2025-05-12T11:27:24.000Z"
End time for log query (rfc3339 format, default now)
"2025-05-12T11:57:24.000Z"
Filter by log stream (postgres, pgbouncer, or upgrade)
postgres, pgbouncer, upgrade "postgres"
Filter by log severity level
DEBUG, INFO, WARN, ERROR, FATAL "INFO"
Filter by server role (primary or standby)
primary, standby "primary"
Pattern for substring match against log message body
Number of log lines to return (default 50, max 500)
Pagination key returned from a previous response
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$