# How to set data change history in a separate index?

**URL:** <https://discuss.elastic.co/t/how-to-set-data-change-history-in-a-separate-index/301762>\
**Category:** Elasticsearch\
**Created:** [April 6, 2022, 1:39pm UTC](https://discuss.elastic.co/t/how-to-set-data-change-history-in-a-separate-index/301762 "2022-04-06T13:39:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![a.number27](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a.number27/32/97675_2.png) [@a.number27](https://discuss.elastic.co/u/a.number27)\
**Post date:** [April 6, 2022, 1:39pm UTC](https://discuss.elastic.co/t/how-to-set-data-change-history-in-a-separate-index/301762/1 "2022-04-06T13:39:45Z")

</div>

To set the historicity I need : "You should store the history in a separate index. And insert into the history index on every update to the original document index."

Can you please tell me how to set it up step by step? are there any sample requests?

Could someone guide me in the right direction here please.

---

<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 4, 2022, 1:40pm UTC](https://discuss.elastic.co/t/how-to-set-data-change-history-in-a-separate-index/301762/2 "2022-05-04T13:40:43Z")

</div>

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