Journal Query Tool
journal_query_toolQuery systemd journal logs by unit, time range, priority, boot, or regex pattern to troubleshoot service issues and inspect system events.
Instructions
Query the journal — the main 2AM troubleshooting tool.
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": "journal_query_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boot | No | Boot offset (0 = current boot, -1 = previous boot, ...) | |
| unit | No | Restrict to one unit (omit for the whole system journal) | |
| lines | No | Number of log lines to return (default: 100) | |
| since | No | Show entries since this time (e.g. "1 hour ago", "YYYY-MM-DD HH:MM:SS") | |
| until | No | Show entries until this time | |
| pattern | No | Filter messages by regex pattern (journalctl -g) | |
| priority | No | Minimum priority: emerg/alert/crit/err/warning/notice/info/debug or 0-7 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||