get_service_logs_from_journalctl
Retrieve recent journald logs for a specific systemd service over SSH, optionally within a time window, to diagnose service failures.
Instructions
Gets recent journald logs for a specific systemd service.
Optional since limits them to a time window: '30 min ago', '2 hours ago', 'today',
'yesterday' or 'YYYY-MM-DD HH:MM:SS' (the last lines entries within it are returned).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"service": "<service>",
"host": "<host>",
"user": "<user>"
},
"name": "get_service_logs_from_journalctl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | No | ||
| user | Yes | ||
| lines | No | ||
| since | No | ||
| service | Yes | ||
| timeout | No | ||
| key_path | No | ||
| password | No | ||
| accept_new_hostkey | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||