Skip to content

Instantly share code, notes, and snippets.

@mikeal
Created February 21, 2019 04:04
Show Gist options
  • 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