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).
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 |