Get service logs
get_service_logsTroubleshoot Linux service issues by retrieving recent systemd logs. Specify the service name and line count to view output from local or remote hosts.
Instructions
Get recent logs for a specific systemd service.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Remote host to connect to via SSH | |
| lines | No | Number of log lines to retrieve. | |
| service_name | Yes | Name of the systemd service |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |