# Elastic input does NOT support aggs?

**URL:** <https://discuss.elastic.co/t/elastic-input-does-not-support-aggs/181546>\
**Category:** Logstash\
**Created:** [May 17, 2019, 8:52am UTC](https://discuss.elastic.co/t/elastic-input-does-not-support-aggs/181546 "2019-05-17T08:52:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [May 17, 2019, 8:52am UTC](https://discuss.elastic.co/t/elastic-input-does-not-support-aggs/181546/1 "2019-05-17T08:52:50Z")

</div>

Hi,

Can somebody confirm whether Logstash 6.6 (or higher) and the elasticsearch input support aggs?

I'm on 6.6 and while normal queries work, aggs do not. Other topic over the years talk about the same issue and in all cases it appears aggs are not supported after logstash 2.1 or something because the `scoll` option messes with aggs queries and on later versions there is no option to disable scroll.

If aggs are not supported this should be clearly indicated on the docs page as there currently is no mention about any limitations at all.

---

<div class="post-metadata">

**Author:** ![pastechecker](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@pastechecker](https://discuss.elastic.co/u/pastechecker)\
**Post date:** [May 17, 2019, 9:12am UTC](https://discuss.elastic.co/t/elastic-input-does-not-support-aggs/181546/2 "2019-05-17T09:12:41Z")

</div>

> [@Sjaak01](#):
>
> d on later versions there is no option to disable scroll.

What does your  
`output {`

` ` `stdout { codec => rubydebug }`

`}`

say?

---

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [May 19, 2019, 11:50pm UTC](https://discuss.elastic.co/t/elastic-input-does-not-support-aggs/181546/3 "2019-05-19T23:50:25Z")

</div>

It just pulls all the documents from the specified indeces. So it appears the whole query is just ignored.

It is not a configuration issue either as other, non aggs queries, work fine.

---

<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:** [June 16, 2019, 11:50pm UTC](https://discuss.elastic.co/t/elastic-input-does-not-support-aggs/181546/4 "2019-06-16T23:50:28Z")

</div>

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