get_service_logs
Retrieve recent journald logs for any systemd service. Filter by priority and control output line count.
Instructions
Retrieve recent journald log entries for a specific systemd service. Supports configurable line count (up to 5000) and optional priority filtering (emerg, alert, crit, err, warning, notice, info, debug).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Service name (e.g. 'sshd', 'cron', 'nginx.service') | |
| lines | No | Number of recent log lines to retrieve (default: 50, max: 5000) | |
| priority | No | Filter logs by minimum priority level |