Postgres

List Postgres server logs

Changed on

Returns PostgreSQL server log entries for a Postgres service within the given time window, most recent first by default (override with sort_order). Results are paginated with limit/offset; advance offset until a page returns fewer than limit entries to read the full window. The time range must not exceed 30 days, and to_date must be after from_date.

get/v1/organizations/{organizationId}/postgres/{postgresId}/logs

Request

  • Base URL
    https://api.clickhouse.cloud
  • Auth
    HTTP basic

Path parameters

organizationId, string uuid required

ID of the organization that owns the Postgres service.

postgresId, string uuid required
Example:f71df78e-ddad-82d0-8dfa-abbec741b82e

ID of the requested Postgres service.

Query parameters

from_date, string date-time required
Example:2026-03-26T00:00:00Z

Inclusive start of the time window (RFC 3339 date-time).

to_date, string date-time required
Example:2026-03-27T00:00:00Z

Inclusive end of the time window (RFC 3339 date-time).

body_contains, string

Case-sensitive substring the log body must contain.

severity, 'DEBUG' | 'LOG' | 'INFO' | 'NOTICE' | 'WARNING' | 'ERROR' | 'FATAL' | 'PANIC'

Filter to log entries with this PostgreSQL severity. Case-sensitive; an empty value applies no filter.

sort_order, 'asc' | 'desc'

Sort order. One of asc or desc.

limit, integer

Maximum number of results to return.

offset, integer

Number of results to skip before returning.

Response

Successful response

object required
status, number

HTTP status code.

requestId, string uuid

Unique id assigned to every request. UUIDv4

result, PostgresLogEntry[]

List of results.

Example response

{
  "status": 200,
  "result": [
    {
      "timestamp": "2026-03-26T20:51:16Z"
    }
  ]
}

Changes

    • breaking

      the query request parameter severity was restricted to a list of enum values

    • info

      added the new enum value DEBUG to the query request parameter severity

    • info

      added the new enum value ERROR to the query request parameter severity

    6 more changes in this revision