Stream pod logs using Server-Sent Events
This endpoint streams pod logs in real-time using SSE. It supports container selection and automatic reconnection.
Path parameters
The cluster name
The namespace name
The pod name
Query parameters
The container name (optional if pod has only one container)
Only return logs newer than a relative duration like 5s, 2m, or 3h
Only return logs after a specific date (RFC3339)
Include timestamps in log output
Number of lines from the end of the logs to show
Download logs as file instead of streaming
Response
OK
Changes
Changed in 3 of the 32 revisions of this API.16
- ○
added the new optional
queryrequest parameterdownloadnew-optional-request-parameter
- ○
added the new optional
queryrequest parametersincenew-optional-request-parameter
- ○
added the new optional
queryrequest parametersinceTimenew-optional-request-parameter
- ○
added the new optional
queryrequest parametertailLinesnew-optional-request-parameter
- ○
added the new optional
queryrequest parametertimestampsnew-optional-request-parameter
- ○
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
- ▲