Get Journal Logs
get_journal_logsFetch systemd journal logs with optional filters for unit, time range, line count, and priority. Use it to troubleshoot services or review system events.
Instructions
Fetch systemd journal logs with optional filters. unit: service name, since/until: time range (e.g. "1 hour ago"), lines: count, priority: 0-7 or emerg/alert/crit/err/warning/notice/info/debug.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Service unit name (e.g. nginx, ssh) | |
| lines | No | Max lines to return | |
| since | No | Start time (e.g. "1 hour ago", "2026-03-27 08:00") | |
| until | No | End time | |
| priority | No | Log priority filter (err, warning, info, debug, etc.) |