get_journal_logs
Query systemd journal logs with filters for unit, priority, time range, and line count. Supports local and remote SSH execution for troubleshooting Linux systems.
Instructions
Query systemd journal logs with optional filters.
Args:
unit: Filter by systemd unit
priority: Filter by priority (emerg, alert, crit, err, warning, notice, info, debug)
since: Show entries since specified time (e.g., '1 hour ago', '2024-01-01')
lines: Number of log lines to retrieve (default: 100)
host: Remote host to connect to via SSH (optional, executes locally if not provided)
username: SSH username for remote host (required if host is provided)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | ||
| priority | No | ||
| since | No | ||
| lines | No | ||
| host | No | ||
| username | No |