Skip to content

Instantly share code, notes, and snippets.

@commuterjoy
Created March 19, 2014 12:23
Show Gist options
  • Save commuterjoy/9640570 to your computer and use it in GitHub Desktop.
Save commuterjoy/9640570 to your computer and use it in GitHub Desktop.
Grep the nginx from all of the routers
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