get_logs
Retrieve Flink JobManager or TaskManager log tails, filter entries by level or search text, and count warnings/errors across the file to diagnose issues quickly.
Instructions
Tail of a Flink log: the JobManager's, or one TaskManager's when taskmanager_id is
given. level ("WARN", "ERROR", ...) keeps only entries at that level or above, each with
its stack trace; search keeps entries containing the text (case-insensitive). file
defaults to the newest *.log; see list_log_files. The result also counts the warnings
and errors in the whole file, so a clean tail of a noisy file is not mistaken for a clean log.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| level | No | ||
| lines | No | ||
| search | No | ||
| cluster | No | ||
| taskmanager_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||