Created
September 16, 2012 13:42
-
-
Save untergeek/3732511 to your computer and use it in GitHub Desktop.
Segment count per index
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
for index in $(ls /data/ES/elasticsearch/nodes/0/indices/); do echo -n "$index " ; curl -s -XGET "http://localhost:9200/$index/_segments?pretty=true" | grep committed_segments | awk -F: '{print $2}' | awk -F, '{sum += $1}; END {print sum}' | tail -1; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment