Skip to main content
GET
Stream in-cluster Loki logs (SSE)

Query Parameters

logSourceKey
string | null

Composite <moduleInstanceId>::<logSourceId> key of the ui.logs source to tail. Mutually exclusive with deploymentResourceId.

deploymentResourceId
string | null

EKS workload deployment resource to tail. Mutually exclusive with logSourceKey.

startTime
string | null

Inclusive start of the historical phase (ISO 8601). Defaults to fifteen minutes before now.

endTime
string | null

Inclusive end of the historical phase (ISO 8601). Defaults to now.

tail
boolean | null

Continue into a live tail after the historical phase.

search
string | null

Case-sensitive substring the line must contain, compiled to a LogQL line filter. A plain string rather than the structured filter tree because a recursive model cannot ride a query param on an SSE GET.

Response

200 - text/event-stream

SSE stream of Loki log events.

A batch of Loki log lines delivered on the SSE tail.

events
object[]
required
isFinal
boolean
required

True on the final batch of the historical phase, before the live tail takes over.