Created
April 8, 2024 08:31
-
-
Save kenoir/aab31ac5a71841c9325655bd3f0ee188 to your computer and use it in GitHub Desktop.
Get ES indices sorted by size
This file contains hidden or 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
GET /_cat/indices?h=index,store.size&bytes=gb&format=json&s=store.size:desc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Then if you want to delete huge indices:
DELETE /index_name