Created
November 16, 2020 13:58
-
-
Save michelep/893627c8c003cfc695ccbef8685eb3d0 to your computer and use it in GitHub Desktop.
Wazuh 4.x - Clean unassigned sharks in ElasticSearch
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
curl -XGET https://localhost:9200/_cat/shards -u admin:admin -k | grep UNASSIGNED | awk {'print $1'} | xargs -i curl -XDELETE "https://localhost:9200/{}" -u admin:admin -k |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment