v15

latestOpenAPI 3.0.0zlibraw.githubusercontent.com2026-08-07281553905.2 KB
kubernetes

Get logs for a Kubernetes pod

Stream the logs for a pod in the given namespace as text/plain. When follow is set the response stays open and emits new log lines until the client disconnects. When the pod has more than one container, the container query parameter is required. Access policy: Authenticated user.

get/kubernetes/{id}/namespaces/{namespace}/pods/{name}/log

Path parameters

idinteger required

Environment(Endpoint) identifier

namespacestring required

Namespace

namestring required

Pod name

Query parameters

containerstring

Container name (required when the pod has multiple containers)

tailLinesinteger

Number of lines from the end of the logs to return

sinceSecondsinteger

Only return logs newer than this many seconds

timestampsboolean

Prefix each log line with an RFC3339 timestamp

previousboolean

Return the logs of the previous terminated container instance

followboolean

Stream new log lines as they are produced until the client disconnects

Response

Success