google-code-export / snaketail-net

Automatically exported from code.google.com/p/snaketail-net
0 stars 1 forks source link

Supporting tailing remote log files through SSH #66

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 alexl...@gmail.com on 12 Dec 2013 at 8:58

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by sweaty1 on 12 Dec 2013 at 9:35

GoogleCodeExporter commented 9 years ago

Original comment by sweaty1 on 12 Dec 2013 at 9:36