Created
January 13, 2020 16:36
-
-
Save faishal/1ce44735aeb0ec6dc1ccd2cf06b25f98 to your computer and use it in GitHub Desktop.
Download raw elb logs for application
This file contains 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
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