ssh_tail_log
Tail a log file on a remote SSH server and return the last N lines, allowing quick monitoring and troubleshooting of system logs.
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 |
|---|---|---|---|
| lines | No | Number of lines to tail (default: 50) | |
| log_path | No | Path to log file (default: /var/log/syslog) | /var/log/syslog |
| server_name | Yes | Server name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||