# Input elasticseach - aggregate data

**URL:** https://discuss.elastic.co/t/input-elasticseach-aggregate-data/178671
**Category:** Logstash
**Created:** [April 26, 2019, 3:16pm UTC](https://discuss.elastic.co/t/input-elasticseach-aggregate-data/178671 "2019-04-26T15:16:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Francisca\_Lima](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@Francisca\_Lima](https://discuss.elastic.co/u/Francisca_Lima)
#### Post date: [April 26, 2019, 3:16pm UTC](https://discuss.elastic.co/t/input-elasticseach-aggregate-data/178671/1 "2019-04-26T15:16:29Z")

</div>

I am trying to read aggregated data of elasticsearch to do some calculations and create fields, and then add to an index of aggregated data.

- I tried the exec plugin, but this only present limited results.  
[Exec plugin](https://discuss.elastic.co/t/es-aggregation-as-logstash-input/106927)
- I tried the elasticsearch input but the output is all the data and not the aggregated results.  
[Input ES](https://discuss.elastic.co/t/aggregation-query-possible-input-es-plugin/28159)

Any solution to this problem?  
Thank you!

---

<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: [May 24, 2019, 3:19pm UTC](https://discuss.elastic.co/t/input-elasticseach-aggregate-data/178671/2 "2019-05-24T15:19:14Z")

</div>

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