Size of Index in Elastic Search

(Rajeev) #1

Hi ,

Is there any way to know the size of index programmatically .Right now I am trying "http://localhost:9200/_cat/indices?h=index,store.size" which give size upto one decimal (For eg 2.6 for both 2.60 and 2.66). Kindly suggest some points.


(Christian Dahlqvist) #2

The indices stats API provides a lot of detailed information about indices.

(Rajeev) #3

I tried "http://rajeevpc:9200/networkteamindex2/_stats/store" but didn't helped out. Can you help me with the exact URL.

(Christian Dahlqvist) #4

That works for me. What error are you getting? What version of Elasticsearch are you using?

(Rajeev) #5

http://rajeevpc:9200/networkteamindex2/_stats/store gives this


But I was expecting something like the output of
in form of
myindex 650b
.kibana 62.9kb
with decimal upto 2 digit .so that I can parse it easily .

I am currently using ES2.1.1

(system) #6