get_journal_logs
Retrieve and filter systemd journal logs from Linux systems to diagnose issues, with options for time range, priority, service unit, and remote SSH access.
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 |