Skip to main content

The end of a pod's log, as text

GET 

/api/namespaces/:namespace/pods/:name/logs

Permission: pods:logs in the namespace of the path (permissions).

Not followed: returns what is there now. At most 10 000 lines and 5 MiB; a cut log has the header X-OpenConsole-Truncated: true (cut at a line end). To follow a log live, use the WebSocket below. Audited as pod.logs.

Request​

Responses​

Log lines.

Response Headers
    X-OpenConsole-Truncated

    "true" when the 5 MiB limit cut the log.