Journal Query Tool
journal_query_toolQuery systemd journal logs to diagnose system issues by filtering entries via boot, unit, time range, priority, or regex pattern.
Instructions
Query the journal — the main 2AM troubleshooting 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", "2026-09-19 02:00") | |
| 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 | |||