# Elasticsearch storage schema retention and aggregation

**URL:** <https://discuss.elastic.co/t/elasticsearch-storage-schema-retention-and-aggregation/76658>\
**Category:** Elasticsearch\
**Created:** [February 27, 2017, 4:43pm UTC](https://discuss.elastic.co/t/elasticsearch-storage-schema-retention-and-aggregation/76658 "2017-02-27T16:43:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Exocomp](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@Exocomp](https://discuss.elastic.co/u/Exocomp)\
**Post date:** [February 27, 2017, 4:43pm UTC](https://discuss.elastic.co/t/elasticsearch-storage-schema-retention-and-aggregation/76658/1 "2017-02-27T16:43:26Z")

</div>

Hi, I've not found a simple answer to this question, I'd appreciate if you can clear it up for me.

In Graphite you can easily setup your storage aggregation (min, max, average, count) and your storage schema retention for example 10 seconds for 1 day, 10 minutes for 30 days, etc.

1. Does elasticsearch have the same capability. And if so could you simply explain it.
2. If not can you explain what it uses by default.
3. Where do I check to find out what a particular graph is using?

Thanks,  
E

---

<div class="post-metadata">

**Author:** ![jkuang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkuang/32/72637_2.png) [@jkuang](https://discuss.elastic.co/u/jkuang)\
**Post date:** [February 27, 2017, 8:26pm UTC](https://discuss.elastic.co/t/elasticsearch-storage-schema-retention-and-aggregation/76658/2 "2017-02-27T20:26:15Z")

</div>

I think the answer you are looking for is in the post below:

[Aggregation Retention](https://discuss.elastic.co/t/insert-into-select-store-aggregated-data/42283)

---

<div class="post-metadata">

**Author:** ![Exocomp](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@Exocomp](https://discuss.elastic.co/u/Exocomp)\
**Post date:** [February 27, 2017, 10:33pm UTC](https://discuss.elastic.co/t/elasticsearch-storage-schema-retention-and-aggregation/76658/3 "2017-02-27T22:33:14Z")

</div>

I checked the link and I'm still not clear. It states that there is no aggregation done, however in my testing I see there is some kind of aggregation. For example, if I monitor CPU and I see a spike in realtime and then search for the spike again I see that it has been averaged with some default aggregation interval (the spike is no longer as high). So I'm back to my original question.

---

<div class="post-metadata">

**Author:** ![jkuang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkuang/32/72637_2.png) [@jkuang](https://discuss.elastic.co/u/jkuang)\
**Post date:** [March 2, 2017, 12:04am UTC](https://discuss.elastic.co/t/elasticsearch-storage-schema-retention-and-aggregation/76658/4 "2017-03-02T00:04:29Z")

</div>

This should be what you need.

> **[Elasticsearch as a Time Series Data Store
	  	 | Elastic](https://www.elastic.co/blog/elasticsearch-as-a-time-series-data-store)**
>
> As the project manager of stagemonitor, an open source performance monitoring tool, I've recently been looking for a database to replace the cool-but-aging Graphite Time Series DataBase (TSDB) as the ...

---

<div class="post-metadata">

**Author:** ![Exocomp](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@Exocomp](https://discuss.elastic.co/u/Exocomp)\
**Post date:** [March 8, 2017, 11:38am UTC](https://discuss.elastic.co/t/elasticsearch-storage-schema-retention-and-aggregation/76658/5 "2017-03-08T11:38:32Z")

</div>

I will look the article, thanks!

---

<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:** [April 5, 2017, 11:38am UTC](https://discuss.elastic.co/t/elasticsearch-storage-schema-retention-and-aggregation/76658/6 "2017-04-05T11:38:33Z")

</div>

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