Get service logs
GET/projects/{project_id}/services/{service_id}/logs
Fetch logs for a specific service. Returns up to 500 log entries in reverse
chronological order. Supports cursor-based pagination via the cursor parameter
and the lastCursor field in the response.
Use the returned lastCursor value as the cursor parameter on subsequent
requests to page through all available logs.
Query Parameters
cursor: optional string
Opaque pagination cursor returned as lastCursor in a previous response.
When provided, returns the next page of logs older than the cursor position.
search: optional array of string
Full-text search terms to filter log lines. Repeat the parameter for multiple values
(e.g. ?search=slow+query&search=ERROR).
severities: optional array of string
Severity levels to filter results. Repeat the parameter for multiple values
(e.g. ?severities=ERROR&severities=WARNING).
Returns
Get service logs
curl https://console.cloud.tigerdata.com/public/api/v1/projects/$PROJECT_ID/services/$SERVICE_ID/logs \
-H "Authorization: Bearer $TIGER_CLOUD_API_KEY"{
"logs": [
"string"
],
"entries": [
{
"message": "database system is ready to accept connections",
"severity": "LOG",
"timestamp": "2025-01-15T09:30:00Z"
}
],
"lastCursor": "eyJ0cyI6IjIwMjUtMDEtMTVUMDk6MzA6MDBaIn0="
}Returns Examples
{
"logs": [
"string"
],
"entries": [
{
"message": "database system is ready to accept connections",
"severity": "LOG",
"timestamp": "2025-01-15T09:30:00Z"
}
],
"lastCursor": "eyJ0cyI6IjIwMjUtMDEtMTVUMDk6MzA6MDBaIn0="
}