Stacks
Get stack logs
Retrieve logs from all services in the stack
get/v1/stacks/{id}/logs
Path parameters
idstring required
Stack identifier
Example:stk_abc123
Query parameters
tailstring
Number of log lines to return per service
Example:100
Response
Structured logs from all services
Example response
{
"id": "stk_abc123",
"services": [
{
"id": "sb_abc123",
"name": "web",
"role": "frontend",
"logs": "npm install\nnpm start\nServer listening on port 3000",
"lineCount": 150
}
],
"totalLineCount": 500
}