snaketail-net
snaketail-net copied to clipboard
Supporting tailing remote log files through SSH
I would like to use the program to tail output from an external problem,
specifically plink or ssh to be able to view log files on different machines on
Linux.
e.g. (snaketail tab machine1) -> ssh machine1 tail -f /var/log/messages
(snaketail tab machine2) -> ssh machine2 tail -f /var/log/messages
(haven't found a program that can this for windows at all)
Original issue reported on code.google.com by [email protected] on 12 Dec 2013 at 8:58
I know this is not a perfect solution, but could you not start tail on the
remote machine and the pipe the output to a file on your local machine through
the ssh-sesion?
'ssh user@host1 "tail -f /path/to/log/file"' > localfile.log
http://www.ianneubert.com/wp/2010/07/14/use-ssh-to-get-tail-of-log-file/
Then it would be simple for any windows tail program to monitor this local file.
Original comment by sweaty1 on 12 Dec 2013 at 9:32
You could configure different "External Tools" inside SnakeTail to
launch/restart/cleanup these ssh-tail-sessions.
Original comment by sweaty1 on 12 Dec 2013 at 9:33
Original comment by sweaty1 on 12 Dec 2013 at 9:35
- Changed title: Supporting tailing external programs through SSH
Original comment by sweaty1 on 12 Dec 2013 at 9:36
- Changed title: Supporting tailing remote log files through SSH
Hi You can checkout dbitail:
https://github.com/pschweitz/DBITail/wiki
And for download: https://github.com/pschweitz/DBITail/releases