insight

Stream pod logs using Server-Sent Events

This endpoint streams pod logs in real-time using SSE. It supports container selection and automatic reconnection.

get/insight/aggregator/log/pod/{cluster}/{namespace}/{name}

Path parameters

clusterstring required

The cluster name

namespacestring required

The namespace name

namestring required

The pod name

Query parameters

containerstring

The container name (optional if pod has only one container)

sincestring

Only return logs newer than a relative duration like 5s, 2m, or 3h

sinceTimestring

Only return logs after a specific date (RFC3339)

timestampsboolean

Include timestamps in log output

tailLinesinteger

Number of lines from the end of the logs to show

downloadboolean

Download logs as file instead of streaming

Response

OK

contentstring
errorstring
timestampstring

Changes

Changed in 3 of the 32 revisions of this API.16

    • added the new optional query request parameter download

      new-optional-request-parameter

    • added the new optional query request parameter since

      new-optional-request-parameter

    • added the new optional query request parameter sinceTime

      new-optional-request-parameter

    • added the new optional query request parameter tailLines

      new-optional-request-parameter

    • added the new optional query request parameter timestamps

      new-optional-request-parameter

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation