Created
March 19, 2014 12:23
-
-
Save commuterjoy/9640570 to your computer and use it in GitHub Desktop.
Grep the nginx from all of the routers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gu ec2 list | grep PROD | grep router | tr -s ' ' | cut -d " " -f 5 | xargs -I % echo 'ssh ec2-user@% "sudo cut -d , -f 3,4 /var/log/nginx/access.log | grep html | grep -v oas"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment