host_logs
Tail remote host logs by service, container, journal, or file, with optional time and regex filters to troubleshoot issues.
Instructions
Tail logs on a host. source: a service name (container stdout / systemd journal of the unit — e.g. remnanode, fail2ban, tailscaled), a log file name (remnanode.log = xray logs in /var/log/remnanode, auth, syslog, apt, install-*), or explicit unit:, container:, file:, journal (whole journal).
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": {
"host": "<host>",
"source": "<source>"
},
"name": "host_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | extended regex, case-insensitive; applied before taking the last N lines | |
| host | Yes | host name from the inventory (fleet_hosts) | |
| lines | No | ||
| since | No | only newer entries (journal/containers): 30m, 2h, 1d | |
| source | Yes | service name, log name, unit:<u>, container:<c>, file:<path>, journal |