Deployments
Preview

Stream the logs of an app's pods, merged

Server-sent events, one `line` event per log line (`{"time","pod","container","text"}`) from every pod of the app (or of the deployment) and an `end` event (`{"reason","message","pods","skipped"}`). Without `follow` the lines are the newest of each pod, sorted by time; with it they arrive as the pod

GET
/deployments/{deploymentId}/logs
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

deploymentId*string
Formatuuid
appId?string

Only the pods of this app of the deployment.

Formatuuid
container?string

Only this container of each pod; empty reads each pod's default container.

Lengthlength <= 253
sinceSeconds?integer
Range1 <= value <= 86400
follow?boolean
Defaultfalse
tailLines?integer

How many of the newest lines of each pod. Defaults to 100.

Range1 <= value <= 1000

Response Body

The log stream.

response?stringtext/event-stream
Example Request
curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/logs'
Example Response
"string"