Skip to content

Instantly share code, notes, and snippets.

@roxma
Created October 12, 2016 02:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roxma/03b9ceddac37b3884552626ac2a21a07 to your computer and use it in GitHub Desktop.
Save roxma/03b9ceddac37b3884552626ac2a21a07 to your computer and use it in GitHub Desktop.
curl http://localhost:9200/_cat/segments?v 2>/dev/null | awk 'NR>1{ arr[$1]+=$10; } END{for (a in arr) print a,arr[a];}' | sort -k 2 -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment