# Rollup sum of terms?

**URL:** <https://discuss.elastic.co/t/rollup-sum-of-terms/205265>\
**Category:** Elasticsearch\
**Created:** [October 25, 2019, 1:23pm UTC](https://discuss.elastic.co/t/rollup-sum-of-terms/205265 "2019-10-25T13:23:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohanRask](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johanrask/32/22713_2.png) [@JohanRask](https://discuss.elastic.co/u/JohanRask)\
**Post date:** [October 25, 2019, 1:23pm UTC](https://discuss.elastic.co/t/rollup-sum-of-terms/205265/1 "2019-10-25T13:23:01Z")

</div>

Hi,

Is it possible to roll up sum of term occurrences, so I can aggregate i.e status\_codes from access logs?

I.e, I would like to rollup sum group-by-term "status\_code" over a time period , is this possible?  
I tried it out and it seems like it is not possible but I wanted to be sure.

Kind regards /Johan

---

<div class="post-metadata">

**Author:** ![Hendrik\_Muhs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hendrik_muhs/32/25802_2.png) [@Hendrik\_Muhs](https://discuss.elastic.co/u/Hendrik_Muhs)\
**Post date:** [November 1, 2019, 6:58pm UTC](https://discuss.elastic.co/t/rollup-sum-of-terms/205265/2 "2019-11-01T18:58:56Z")

</div>

Hi Johan,

could you provide an example with some data points?

It indeed sounds like this is not possible with rollup, however I suggest to have a look at the new continuous transform feature we added in 7.3. Its similar to rollup and allows data aggregation on a continuous basis, see [https://www.elastic.co/guide/en/elasticsearch/reference/7.4/put-transform.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.4/put-transform.html)

Best,

Hendrik

---

<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:** [November 29, 2019, 6:59pm UTC](https://discuss.elastic.co/t/rollup-sum-of-terms/205265/3 "2019-11-29T18:59:02Z")

</div>

Closed on November 29, 2019, 6:59pm UTC

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