# Storing aggregation in elasticsearch

**URL:** <https://discuss.elastic.co/t/storing-aggregation-in-elasticsearch/217904>\
**Category:** Elasticsearch\
**Created:** [February 5, 2020, 5:46am UTC](https://discuss.elastic.co/t/storing-aggregation-in-elasticsearch/217904 "2020-02-05T05:46:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shashwat001](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shashwat001/32/58268_2.png) [@shashwat001](https://discuss.elastic.co/u/shashwat001)\
**Post date:** [February 5, 2020, 5:46am UTC](https://discuss.elastic.co/t/storing-aggregation-in-elasticsearch/217904/1 "2020-02-05T05:46:56Z")

</div>

I want to store summarized data in elasticsearch for a time series input. I want to get aggregated data per 5 minutes. Does elasticsearch provide any feature to aggregate data and store in it? I don't want to do aggregation during the query.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 5, 2020, 6:24am UTC](https://discuss.elastic.co/t/storing-aggregation-in-elasticsearch/217904/2 "2020-02-05T06:24:17Z")

</div>

I think you want this: [https://www.elastic.co/guide/en/elasticsearch/reference/current/xpack-rollup.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/xpack-rollup.html)

---

<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:** [March 4, 2020, 6:24am UTC](https://discuss.elastic.co/t/storing-aggregation-in-elasticsearch/217904/3 "2020-03-04T06:24:27Z")

</div>

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