# Help With Adding New Aggregation

**URL:** <https://discuss.elastic.co/t/help-with-adding-new-aggregation/77739>\
**Category:** Elasticsearch\
**Created:** [March 7, 2017, 11:11pm UTC](https://discuss.elastic.co/t/help-with-adding-new-aggregation/77739 "2017-03-07T23:11:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cb2015](https://avatars.discourse-cdn.com/v4/letter/c/7993a0/32.png) [@cb2015](https://discuss.elastic.co/u/cb2015)\
**Post date:** [March 7, 2017, 11:11pm UTC](https://discuss.elastic.co/t/help-with-adding-new-aggregation/77739/1 "2017-03-07T23:11:24Z")

</div>

Hi All,

I am trying to follow this blog post from elastic - [https://www.elastic.co/blog/implementing-a-statistical-anomaly-detector-part-1](https://www.elastic.co/blog/implementing-a-statistical-anomaly-detector-part-1).

In it, the author says that we will have to design a set of aggregations, which seems fine.

What i am getting stuck on is that at the end of the article, we have this giant aggregation, but I do not know where to "put it" so that it is accessible in the next step, where the results of that aggregation are plotted in timelion.

So it seems like I have to get this aggregation _somewhere somehow_.

My question is where should it go, and how do I put it there?

---

<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 4, 2017, 11:11pm UTC](https://discuss.elastic.co/t/help-with-adding-new-aggregation/77739/2 "2017-04-04T23:11:23Z")

</div>

Closed on April 4, 2017, 11:11pm UTC

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