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.
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": "get_journal_logs"
}
}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.) |