List Postgres server logs
Changed onReturns 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.
Request
- Base URLhttps://api.clickhouse.cloud
- AuthHTTP basic
Path parameters
ID of the organization that owns the Postgres service.
ID of the requested Postgres service.
Query parameters
Inclusive start of the time window (RFC 3339 date-time).
Inclusive end of the time window (RFC 3339 date-time).
Case-sensitive substring the log body must contain.
Filter to log entries with this PostgreSQL severity. Case-sensitive; an empty value applies no filter.
Sort order. One of asc or desc.
Maximum number of results to return.
Number of results to skip before returning.
Response
Successful response
HTTP status code.
Unique id assigned to every request. UUIDv4
List of results.
Example response
{
"status": 200,
"result": [
{
"timestamp": "2026-03-26T20:51:16Z"
}
]
}Changes
- breaking
the
queryrequest parameterseveritywas restricted to a list of enum values - info
added the new enum value
DEBUGto thequeryrequest parameterseverity - info
added the new enum value
ERRORto thequeryrequest parameterseverity
6 more changes in this revision
- breaking