# Keep summary data

**URL:** <https://discuss.elastic.co/t/keep-summary-data/42372>\
**Category:** Elasticsearch\
**Created:** [February 22, 2016, 9:23am UTC](https://discuss.elastic.co/t/keep-summary-data/42372 "2016-02-22T09:23:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikalp](https://avatars.discourse-cdn.com/v4/letter/v/e47c2d/32.png) [@vikalp](https://discuss.elastic.co/u/vikalp)\
**Post date:** [February 22, 2016, 9:23am UTC](https://discuss.elastic.co/t/keep-summary-data/42372/1 "2016-02-22T09:23:09Z")

</div>

I have a requirement, i can keep only few days data like last 7 days in my ES cluster.  
but i want to store the summary data fro long time.  
like number of count for any query in every 5 minutes . so later on i can compare with any time data

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [February 22, 2016, 6:34pm UTC](https://discuss.elastic.co/t/keep-summary-data/42372/2 "2016-02-22T18:34:50Z")

</div>

This is a need that we see sometimes. Unfortunately we don't have a go-to solution for it right now. So you would have to do it on client-side and store aggregated information about the indices that you are removing somewhere.

---

<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:** [July 5, 2017, 11:14pm UTC](https://discuss.elastic.co/t/keep-summary-data/42372/3 "2017-07-05T23:14:23Z")

</div>


