v1

latestOpenAPI 3.1.0Apache 2.02026-07-17471545.0 KB
Kubernetes

Get pod logs

Returns log output from a pod's container. Useful for debugging services.

get/v1/kubernetes/pods/{namespace}/{podName}/logs

Path parameters

namespacestring required

Kubernetes namespace

podNamestring required

Pod name

Query parameters

contextstring

Kubernetes context (uses current if omitted)

containerstring

Container name (defaults to first container)

tailLinesinteger

Number of lines from end (default 100, max 1000)

sinceTimestring date-time

RFC3339 timestamp to start from (e.g., 2024-01-15T10:30:00Z)

previousboolean

Get logs from previous container instance

timestampsboolean

Include timestamps in log output

Response

Pod logs

successboolean

Example response

{
  "error": {
    "code": "NOT_FOUND",
    "message": "Service not found"
  }
}