Created
February 21, 2019 04:04
-
-
Save mikeal/6bbd1dbe2524e7ea9c5e4cfbf2a542f7 to your computer and use it in GitHub Desktop.
delete all the aws log streams
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 logs describe-log-streams --log-group-name="/aws/lambda/ghmetrics-staging-get-filter" --query 'logStreams[*].l│·········· | |
ogStreamName' --output table | awk '{print $2}' | grep -v ^$ | while read x; do aws logs delete-log-stream --log-stream-name="$x" --log-group-name="/a│·········· | |
ws/lambda/ghmetrics-staging-get-filter"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment