logs/journal-control
Query systemd journal logs to inspect service output, filter by unit, time, or boot, and tail lines for troubleshooting.
Instructions
Queries the systemd journal (journalctl equivalent). Requires privileged: true in containerized deployments, since journalctl only exists on the host, never in this daemon's own image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boot | No | Restrict output to the current boot (journalctl -b) | |
| unit | No | Filter by systemd unit (e.g., 'kubelet.service') | |
| lines | No | Number of lines to tail (default: 100) | |
| since | No | Filter logs since a specific time (e.g., '1 hour ago', 'today') | |
| until | No | Filter logs until a specific time (e.g., 'yesterday', '12:00') | |
| reverse | No | Output newest entries first | |
| privileged | No | Run as root and join the host mount namespace - required in containerized deployments | |
| boot_offset | No | Select a prior boot relative to the current one, e.g. -1 for the previous boot (implies boot) | |
| output_format | No | Desired output format (e.g. json). Defaults to text |