Skip to content

Instantly share code, notes, and snippets.

@mikeal

mikeal/script.zsh

Created Feb 21, 2019
Embed
What would you like to do?
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