Get journal logs
get_journal_logsRetrieve and filter systemd journal logs for troubleshooting Linux systems, enabling analysis of service behavior, errors, and system events with customizable parameters.
Instructions
Get systemd journal logs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Filter by systemd unit name or pattern | |
| priority | No | Filter by syslog priority level (0-7), name, or range | |
| since | No | Filter entries since specified time (absolute or relative) | |
| transport | No | Filter by journal transport (e.g., 'audit' for audit logs, 'kernel' for kernel messages, 'syslog' for syslog messages) | |
| lines | No | Number of log lines to retrieve. Default: 100 | |
| host | No | Remote host to connect to via SSH |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| unit | No | ||
| entries | Yes | ||
| lines_count | No |