Skip to content

Instantly share code, notes, and snippets.

@faishal
Created January 13, 2020 16:36
Show Gist options
  • Save faishal/1ce44735aeb0ec6dc1ccd2cf06b25f98 to your computer and use it in GitHub Desktop.
Save faishal/1ce44735aeb0ec6dc1ccd2cf06b25f98 to your computer and use it in GitHub Desktop.
Download raw elb logs for application
aws s3 ls s3://<bucket>/AWSLogs/<accountnumber>/elasticloadbalancing/<region>/2019/10/ --recursive | grep <search-string> | awk '{print $4}'| xargs -I FNAME sh -c 'aws s3 cp s3://<bucket-name>/AWSLogs"$FNAME" .'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment