Skip to content

Instantly share code, notes, and snippets.

@avovsya
Created December 15, 2015 09:35
Show Gist options
  • Save avovsya/419a98981e20f4af82d4 to your computer and use it in GitHub Desktop.
Save avovsya/419a98981e20f4af82d4 to your computer and use it in GitHub Desktop.
Tail and Grep log files from multiple servers
cat <(ssh server1 sudo tail -f /var/log/log.log) <(ssh server2 sudo tail -f /var/log/log.log) | grep /api/1/test >> hits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment