The -f option after ssh allows you to enter a password before it runs in the background. Then you could have the line-by-line results in a single file and running:
tail -f /tmp/somefile
Would give you a little more control over the current "tail" command in case you wanted to use other tail options for displaying output.
Take a look at multitail. Just like the examples above, you can give it as a command to ssh, and then you will end up with one screen displaying (and buffering for easy scrollbacks) multiple logs. It also does coloring, which is very useful for spotting anomalies.
Just download version corresponding to your operating system, of native jar release executable within your Java Runtime (requires java 8_40 or higher):
My preferred option is to go with multitail. I'd run something like:
This worked for me:
You can use fabric to tail several hosts (and also grep results, if needed):
I was thinking it might also be possible to use:
The -f option after ssh allows you to enter a password before it runs in the background. Then you could have the line-by-line results in a single file and running:
Would give you a little more control over the current "tail" command in case you wanted to use other tail options for displaying output.
Check out this answer on stackoverflow -- it uses dsh and tail -f.
Take a look at multitail. Just like the examples above, you can give it as a command to ssh, and then you will end up with one screen displaying (and buffering for easy scrollbacks) multiple logs. It also does coloring, which is very useful for spotting anomalies.
Parallel ssh has a nice solution for this:
-t0
disables the connection timeout, otherwise pssh closed the connection-H '<host>...'
is the list of hosts to run the command-P
is to enable printing the stdout of each hosttail -f /var/log/app.log
can be any command that your remote shell can runWhat would you say about something like this? http://gist.github.com/303175
Just a weird solution, but it works!:
Screen 1
Screen 2
You can checkout dbitail.
A Java tool I created, able to read local and distant log files using SSH. It is fairly simple to use.
Some more explanations: https://github.com/pschweitz/DBITail/wiki
Just download version corresponding to your operating system, of native jar release executable within your Java Runtime (requires java 8_40 or higher):
https://github.com/pschweitz/DBITail/releases
You can find a complete documentation (embedded with and I Github's page as well)
Philippe