Skip to content

Instantly share code, notes, and snippets.

@mikeal
Created February 21, 2019 04:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeal/6bbd1dbe2524e7ea9c5e4cfbf2a542f7 to your computer and use it in GitHub Desktop.
Save mikeal/6bbd1dbe2524e7ea9c5e4cfbf2a542f7 to your computer and use it in GitHub Desktop.
delete all the aws log streams
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