Get Agent Logs
Tailed [AGENT]-prefixed Flink TM logs + recent job exceptions.
The write:agents gate is intentional: agent log lines may contain
customer payloads that flowed through prompts and tool args. Tightening
the audit surface here mirrors how the Streamkap MCP project key blob
is gated.
Per-line scoping is namespace-wide for now - when multiple agents share a TaskManager, lines from other agents may appear. Documented limitation until the Java runtime emits per-line agent IDs.
since is an optional ISO 8601 cutoff for incremental polling on the
unified observability surface. The underlying tail window is Nx4 the
requested tail count; if since is far enough back that the
window doesn’t reach it, the response is still bounded by tail (the
caller can widen tail to compensate).
/agents/{job_id}/logsAuthorizationBearer token · headerrequiredjob_idstringrequiredtailintegerlevelstringsearchstringsincestringSuccessful Response
linesAgentLogLine[]Show propertiesHide properties
AgentLogLinetimestampstring | nullLine timestamp as emitted by the Flink logger
Show propertiesHide properties
stringnulllevelstringLog level — DEBUG, INFO, WARN, ERROR
messagestringrequiredLog message body
flinkExceptionsAgentFlinkException[]Show propertiesHide properties
AgentFlinkExceptiontimestampstring | nullISO8601 timestamp (Flink millis-since-epoch normalised)
Show propertiesHide properties
stringnullexceptionstringrequiredStack trace or exception text
taskstring | nullFlink task name when available
Show propertiesHide properties
stringnullscopestringPer-line scoping of returned lines. namespace means lines may include [AGENT] entries from other agents sharing a TaskManager (current limitation). agent will be returned once the Java runtime emits per-line agent IDs.
namespaceagentValidation Error
detailValidationError[]Show propertiesHide properties
ValidationErrorlocstring | integer[]requiredShow propertiesHide properties
string | integerstringintegermsgstringrequiredtypestringrequiredinputanyctxobject