# How to do summary indexing in Elasticsearch

**URL:** https://discuss.elastic.co/t/how-to-do-summary-indexing-in-elasticsearch/245491
**Category:** Elasticsearch
**Created:** [August 18, 2020, 8:42pm UTC](https://discuss.elastic.co/t/how-to-do-summary-indexing-in-elasticsearch/245491 "2020-08-18T20:42:29Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![kelk](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@kelk](https://discuss.elastic.co/u/kelk)
#### Post date: [August 18, 2020, 8:42pm UTC](https://discuss.elastic.co/t/how-to-do-summary-indexing-in-elasticsearch/245491/1 "2020-08-18T20:42:29Z")

</div>

hi,  
we have a massive index, few reference indexes and we wanted to summarise from these multiple indexes into a single "summary index" . This way we are planning to join the queries

So the questions

1. Can output of a GET/POST from elasticsearch be indexed into ElasticSearch (another index)?
2. Should it be sent to logstash again or is there a method to index without going outside elasticsearch?

---

<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: [August 18, 2020, 8:51pm UTC](https://discuss.elastic.co/t/how-to-do-summary-indexing-in-elasticsearch/245491/2 "2020-08-18T20:51:44Z")

</div>

Do you mean something like [https://www.elastic.co/guide/en/elasticsearch/reference/current/xpack-rollup.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/xpack-rollup.html)?

---

<div class="post-metadata">

### Author: ![kelk](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@kelk](https://discuss.elastic.co/u/kelk)
#### Post date: [August 18, 2020, 9:33pm UTC](https://discuss.elastic.co/t/how-to-do-summary-indexing-in-elasticsearch/245491/3 "2020-08-18T21:33:13Z")

</div>

can the rollup join data from multiple indexes or do we need to individually roll them up?  
I'm trying to achieve is a "correlation" of data within multiple indexes by putting into a single summarised index

---

<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: [August 18, 2020, 9:36pm UTC](https://discuss.elastic.co/t/how-to-do-summary-indexing-in-elasticsearch/245491/4 "2020-08-18T21:36:48Z")

</div>

Elasticsearch cannot join data.

What sort of correlation are you looking at?

---

<div class="post-metadata">

### Author: ![kelk](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@kelk](https://discuss.elastic.co/u/kelk)
#### Post date: [August 18, 2020, 9:39pm UTC](https://discuss.elastic.co/t/how-to-do-summary-indexing-in-elasticsearch/245491/5 "2020-08-18T21:39:07Z")

</div>

I had a complex set of requirement whereby I've to aggregate and then alert based on a dynamic threshold (from a CSV file). So my thought was to put the Dynamic CSV && the summarised raw dataset into a single index and then alert from it.

---

<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: [August 18, 2020, 9:41pm UTC](https://discuss.elastic.co/t/how-to-do-summary-indexing-in-elasticsearch/245491/6 "2020-08-18T21:41:58Z")

</div>

Ah right, you might be able to use a chained input alert to do this - [https://www.elastic.co/guide/en/elasticsearch/reference/current/input-chain.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/input-chain.html)

---

<div class="post-metadata">

### Author: ![kelk](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@kelk](https://discuss.elastic.co/u/kelk)
#### Post date: [August 18, 2020, 9:45pm UTC](https://discuss.elastic.co/t/how-to-do-summary-indexing-in-elasticsearch/245491/7 "2020-08-18T21:45:08Z")

</div>

very interesting. I will have a playaround with it. Meantime, I've upvoted. thanks again mate

---

<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: [September 15, 2020, 9:45pm UTC](https://discuss.elastic.co/t/how-to-do-summary-indexing-in-elasticsearch/245491/8 "2020-09-15T21:45:10Z")

</div>

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