Get service logs
get_service_logsRetrieve recent systemd service logs to diagnose issues, monitor service behavior, and troubleshoot problems on Linux systems.
Instructions
Get recent logs for a specific systemd service.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_name | Yes | Name of the systemd service | |
| lines | No | Number of log lines to retrieve. | |
| host | No | Remote host to connect to via SSH |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |