# Elasticsearch input plugin query error

**URL:** <https://discuss.elastic.co/t/elasticsearch-input-plugin-query-error/84991>\
**Category:** Logstash\
**Created:** [May 8, 2017, 11:35pm UTC](https://discuss.elastic.co/t/elasticsearch-input-plugin-query-error/84991 "2017-05-08T23:35:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chg](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@chg](https://discuss.elastic.co/u/chg)\
**Post date:** [May 8, 2017, 11:35pm UTC](https://discuss.elastic.co/t/elasticsearch-input-plugin-query-error/84991/1 "2017-05-08T23:35:19Z")

</div>

I have a working elasticsearch query I would like to run and reinsert the results back into elasticsearch. I am using the elasticsearch input plugin in my logstash config file. I have a query that contains aggregations and when I try to load the config file, I get the following error "aggregations are not supported with search\_type=scan". How would I go about resolving this?

---

<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 5, 2017, 11:35pm UTC](https://discuss.elastic.co/t/elasticsearch-input-plugin-query-error/84991/2 "2017-06-05T23:35:23Z")

</div>

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