Read Journal
read_journalQuery systemd journal logs by unit, priority, time, or regex to troubleshoot services and diagnose system issues.
Instructions
Query the systemd journal (journalctl).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "read_journal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | regex filter (journalctl -g) | |
| sudo | No | retry with sudo on permission errors (system journal needs root or systemd-journal group) | |
| unit | No | filter by unit e.g. 'ssh.service' | |
| user | No | ||
| lines | No | ||
| since | No | '1 hour ago', 'today', '2024-06-01', ... | |
| reverse | No | newest first | |
| priority | No | minimum priority err|warning|info|debug... | |
| identifier | No | syslog identifier (-t) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |