Filter rlg log records
filter_logFilter a log file by minimum severity and component, rendering only the matching records in your chosen format (e.g., Logfmt or JSON).
Instructions
Select rlg records by minimum severity and/or component and render them in any rlg LogFormat. Use this to narrow a log to what matters (e.g. WARN-and-above for one service); use tail_log for a raw recent slice and summarize_errors when you only need per-component error totals.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "filter_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Filesystem path to an rlg log file to read. | |
| format | No | rlg LogFormat name to render matched records in (e.g. Logfmt, JSON). Defaults to Logfmt. | Logfmt |
| component | No | Keep only records whose component matches this exact value. Omit to keep all components. | |
| min_level | No | Keep only records at or above this severity. Omit to keep all levels. |