Get Agent Logs
Recent agent log lines from the Flink task managers, plus recent job exceptions.
Requires write:agents because agent log lines may contain customer
payloads that flowed through prompts and tool arguments.
Lines are scoped to the agent’s namespace: when several agents share a task manager, lines from other agents may appear.
tail (1-500, default 100) caps the number of lines; level filters by
log level. 400 for an out-of-range tail or an unknown level.
since is an optional ISO 8601 cutoff for incremental polling. The
response is always bounded by tail, so if since is far back, widen
tail to reach it.
/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 agent runtime emits per-line agent IDs.
namespaceagentValidation Error
detailValidationError[]Show propertiesHide properties
ValidationErrorlocstring | integer[]requiredShow propertiesHide properties
string | integerstringintegermsgstringrequiredtypestringrequiredinputanyctxobject