ssh_tail_log
Tail a log file on a remote server. Returns the last N lines for real-time monitoring or troubleshooting.
Instructions
Tail a log file on a remote server.
Returns the last N lines of the specified log file.
EXAMPLES:
ssh_tail_log("proxmox")
ssh_tail_log("truenas", "/var/log/messages", lines=100)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server_name | Yes | Server name | |
| log_path | No | Path to log file (default: /var/log/syslog) | /var/log/syslog |
| lines | No | Number of lines to tail (default: 50) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||