# Elasticsearch: how to get store.size and pri.store.size per day size in url query between date range

**URL:** <https://discuss.elastic.co/t/elasticsearch-how-to-get-store-size-and-pri-store-size-per-day-size-in-url-query-between-date-range/162615>\
**Category:** Elasticsearch\
**Created:** [January 2, 2019, 9:14am UTC](https://discuss.elastic.co/t/elasticsearch-how-to-get-store-size-and-pri-store-size-per-day-size-in-url-query-between-date-range/162615 "2019-01-02T09:14:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![k.abhi](https://avatars.discourse-cdn.com/v4/letter/k/b9e5f3/32.png) [@k.abhi](https://discuss.elastic.co/u/k.abhi)\
**Post date:** [January 2, 2019, 9:14am UTC](https://discuss.elastic.co/t/elasticsearch-how-to-get-store-size-and-pri-store-size-per-day-size-in-url-query-between-date-range/162615/1 "2019-01-02T09:14:02Z")

</div>

Hi All, I am new in elastic search so, please help me to find out the per day index store size based on date range. Currently, i have index records and total store size of the index using Elastic REST API. I tried with the help of **date math index names** but i am not able to achieved the results. I am using ElasticSearch **5.3**.

**Url** : [http://localhost:9200/\_cat/indices?v&index=](http://localhost:9200/_cat/indices?v&index=) **index\_name**

**health index docs.count store.size pri.store.size**

green elastic\_1 2345 1gb 500mb

green elastic\_2 1234 15gb 7.8gb

green elastic\_3 1222 7gb 3.7gb

**Url** : **[http://localhost:9200/\_cat/indices?bytes=b&v&index=index\_name&h=store.size&format=json](http://localhost:9200/_cat/indices?bytes=b&v&index=index_name&h=store.size&format=json)**

Output: [{"store.size":"122"},{"store.size":"222"},{"store.size":"333"}]

how to get per day index log message size both( **store.size** and **pri.store.size** ) based on start\_date(12:00AM) to end\_date(11:59PM)?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 30, 2019, 9:21am UTC](https://discuss.elastic.co/t/elasticsearch-how-to-get-store-size-and-pri-store-size-per-day-size-in-url-query-between-date-range/162615/2 "2019-01-30T09:21:11Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
