v1
latestOpenAPI 3.0.32026-07-17485661.9 KBGet database logs
Fetch logs for a specific database. Returns up to 500 log entries in reverse chronological order. Supports cursor-based pagination via the cursor parameter and the last_cursor field in the response.
Path parameters
Ghost space ID.
Database ID or name.
Query parameters
Opaque pagination cursor returned as last_cursor in a previous response. When provided, returns the next page of logs older than the cursor position.
Upper bound timestamp — return logs at or before this time (RFC3339 format, e.g., 2024-01-15T10:00:00Z). Defaults to now.
Lower bound timestamp — fetch logs after this time (RFC3339 format, e.g., 2024-01-15T09:00:00Z)
Full-text search terms to filter log lines. Repeat the parameter for multiple values (e.g. ?search=slow+query&search=ERROR).
Severity levels to filter results. Repeat the parameter for multiple values (e.g. ?severity=ERROR&severity=WARNING). Common values include LOG, WARNING, ERROR, and FATAL; PostgreSQL may also emit DEBUG*, INFO, NOTICE, and PANIC.
Response
Database logs