snaketail-net icon indicating copy to clipboard operation
snaketail-net copied to clipboard

Supporting tailing remote log files through SSH

Open GoogleCodeExporter opened this issue 10 years ago • 5 comments

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

GoogleCodeExporter avatar Mar 17 '15 21:03 GoogleCodeExporter

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 avatar Mar 17 '15 21:03 GoogleCodeExporter

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 avatar Mar 17 '15 21:03 GoogleCodeExporter

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

  • Changed title: Supporting tailing external programs through SSH

GoogleCodeExporter avatar Mar 17 '15 21:03 GoogleCodeExporter

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

  • Changed title: Supporting tailing remote log files through SSH

GoogleCodeExporter avatar Mar 17 '15 21:03 GoogleCodeExporter

Hi You can checkout dbitail:

https://github.com/pschweitz/DBITail/wiki

And for download: https://github.com/pschweitz/DBITail/releases

pschweitz avatar Jun 23 '16 08:06 pschweitz