# New document in one index should update a value in another index

**URL:** <https://discuss.elastic.co/t/new-document-in-one-index-should-update-a-value-in-another-index/262601>\
**Category:** Elasticsearch\
**Created:** [January 29, 2021, 6:45am UTC](https://discuss.elastic.co/t/new-document-in-one-index-should-update-a-value-in-another-index/262601 "2021-01-29T06:45:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Parimelazhagan\_Vinay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/parimelazhagan_vinay/32/77617_2.png) [@Parimelazhagan\_Vinay](https://discuss.elastic.co/u/Parimelazhagan_Vinay)\
**Post date:** [January 29, 2021, 6:45am UTC](https://discuss.elastic.co/t/new-document-in-one-index-should-update-a-value-in-another-index/262601/1 "2021-01-29T06:45:06Z")

</div>

Hi All, I am new elasticsearch. Any help on the below use case would be helpful.

I have the data which is flowing into one index say index\_raw

ELK Dev 1.0 Time1  
ELK Dev 2.0 Time2  
ELK Stage 1.0 Time3

Now I wanted to compare latest version of Dev and stage for ELK, which is here 1.0 in stage and 2.0 in Dev

To achieve this, I wanted to create another index say index\_summary with the following fields  
ELK Dev\_Version Stage\_Version  
Keep only the latest version in a single row for Dev and Stage, this will help me to create a visuals easily and to compare the values.

Any help on this would be greatly appreciated

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [January 29, 2021, 8:14am UTC](https://discuss.elastic.co/t/new-document-in-one-index-should-update-a-value-in-another-index/262601/2 "2021-01-29T08:14:30Z")

</div>

I would recommend you have a look at [transforms](https://www.elastic.co/guide/en/elasticsearch/reference/7.10/transforms.html) as this might be a good fit for that use case.

---

<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 26, 2021, 8:15am UTC](https://discuss.elastic.co/t/new-document-in-one-index-should-update-a-value-in-another-index/262601/3 "2021-02-26T08:15:06Z")

</div>

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