# Can i reindex aggregation's result to other index?

**URL:** <https://discuss.elastic.co/t/can-i-reindex-aggregations-result-to-other-index/166102>\
**Category:** Elasticsearch\
**Created:** [January 29, 2019, 7:19am UTC](https://discuss.elastic.co/t/can-i-reindex-aggregations-result-to-other-index/166102 "2019-01-29T07:19:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![teemoGod](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/teemogod/32/40817_2.png) [@teemoGod](https://discuss.elastic.co/u/teemoGod)\
**Post date:** [January 29, 2019, 7:19am UTC](https://discuss.elastic.co/t/can-i-reindex-aggregations-result-to-other-index/166102/1 "2019-01-29T07:19:38Z")

</div>

Hi. im using Elasticseacrh 6.4.1

i have a lot of logs.

to visualize these, im using vega in Kibana. (there are nested objects)

but logs are too many exist to aggregate and drawing grpah in vega.  
(request timeout occured)

so, i decided to make other index to save summary information of the index's aggregation results.  
crontab (or scheduling job) will insert this summary information to new index.  
(near realtime aggregation summary)

im refering ElasticSearch documents, and i saw 'reindex' feature.

can i do this?

when i tested Reindex API, only filtered query's result is moved(i dont know 'copied' exactly) in new index.

there aren't aggregation results.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 29, 2019, 7:21am UTC](https://discuss.elastic.co/t/can-i-reindex-aggregations-result-to-other-index/166102/2 "2019-01-29T07:21:22Z")

</div>

You could use the rollup APIs - [https://www.elastic.co/guide/en/elasticsearch/reference/6.5/rollup-apis.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.5/rollup-apis.html)

But if things are timing out, there may be other ways to stop that from happening.

---

<div class="post-metadata">

**Author:** ![teemoGod](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/teemogod/32/40817_2.png) [@teemoGod](https://discuss.elastic.co/u/teemoGod)\
**Post date:** [January 30, 2019, 5:27am UTC](https://discuss.elastic.co/t/can-i-reindex-aggregations-result-to-other-index/166102/3 "2019-01-30T05:27:32Z")

</div>

@warkolm thx for your response.

and i trying to use this feature.

i saw this reference.  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-agg-limitations.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-agg-limitations.html)

can i using 'Nested Aggregation' in Rollup API? or not?

Of course, i will use 'AVG Aggregation' as a child aggregation of 'Nested Aggregation'

---

<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:** [February 27, 2019, 5:27am UTC](https://discuss.elastic.co/t/can-i-reindex-aggregations-result-to-other-index/166102/4 "2019-02-27T05:27:34Z")

</div>

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