Created
September 27, 2017 16:12
-
-
Save cpuspellcaster/1c7c5f354ab48ec4b7151270a58e4491 to your computer and use it in GitHub Desktop.
delete-logstash-indicies.sh
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
#! /usr/bin/env bash | |
month=07 | |
for i in {1..31} | |
do | |
day=$(printf "%02d" $i) | |
curl -XDELETE "https://[CLUSTER_ENDPOINT]/logstash-2017.$month.$day" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment