ssh_logs
Retrieve remote logs from files, journalctl, or Docker containers. Filter by keyword, time, or priority, and enable follow to get only new lines.
Instructions
Query logs from a remote server. Supports file tailing, journalctl, and Docker container logs. Use follow=true to enable incremental tracking — subsequent calls return only NEW log lines (simulates tail -f).
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": {
"connectionId": "<connectionId>",
"source": "<source>",
"target": "<target>"
},
"name": "ssh_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | Filter lines containing this keyword (case-insensitive) | |
| lines | No | Number of lines to return on first query (default: 100, ignored on follow-up) | |
| since | No | Time filter: "5m", "1h", "2d", or a date string | |
| follow | No | Enable incremental tracking. First call returns last N lines; subsequent calls return only NEW lines since last call. | |
| source | Yes | Log source type | |
| target | Yes | File path (e.g. /var/log/syslog), systemd unit (e.g. nginx), or Docker container name | |
| priority | No | journalctl priority filter: emerg, alert, crit, err, warning, notice, info, debug | |
| connectionId | Yes | The connection ID |