Skip to content

Instantly share code, notes, and snippets.

@holmesal
Last active September 2, 2016 01:02
Show Gist options
  • Save holmesal/3a18435d8864566d41e69862e1a1cc82 to your computer and use it in GitHub Desktop.
Save holmesal/3a18435d8864566d41e69862e1a1cc82 to your computer and use it in GitHub Desktop.
league awk stuff

Sync logs from s3 bucket

aws s3 sync s3://league-loadbalancer-logs2/league-production/AWSLogs/478410257198/elasticloadbalancing/us-east-1/2016/09/01 ./

Count requests by status code

awk '{if($13=="https://love.theleague.com:443/api/v1/person/me/potentials") print($8 " " $13)}' access.log | sort | uniq -c | sort -r

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment