Get service logs
get_service_logsFetch recent log lines for a specified systemd service on a local or remote host to diagnose issues.
Instructions
Get recent logs for a specific systemd service.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | System to run on: 'localhost' for the system the MCP server runs on, or a 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 |