# Copy documents in another index on creation

**URL:** <https://discuss.elastic.co/t/copy-documents-in-another-index-on-creation/236705>\
**Category:** Elasticsearch\
**Created:** [June 11, 2020, 12:51pm UTC](https://discuss.elastic.co/t/copy-documents-in-another-index-on-creation/236705 "2020-06-11T12:51:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gitterhh](https://avatars.discourse-cdn.com/v4/letter/g/b19c9b/32.png) [@gitterhh](https://discuss.elastic.co/u/gitterhh)\
**Post date:** [June 11, 2020, 12:51pm UTC](https://discuss.elastic.co/t/copy-documents-in-another-index-on-creation/236705/1 "2020-06-11T12:51:40Z")

</div>

We want to keep track of all the changes of a document, so we want to store all the document versions in separate index.  
Is there a way when a new document is added or changes to send the entire document in another index? Maybe there is a processor for this use case?

---

<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:** [June 15, 2020, 11:39pm UTC](https://discuss.elastic.co/t/copy-documents-in-another-index-on-creation/236705/2 "2020-06-15T23:39:46Z")

</div>

I think the closest you could get with ingest processors would be [https://www.elastic.co/guide/en/elasticsearch/reference/current/pipeline-processor.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/pipeline-processor.html)

---

<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:** [July 13, 2020, 11:39pm UTC](https://discuss.elastic.co/t/copy-documents-in-another-index-on-creation/236705/3 "2020-07-13T23:39:49Z")

</div>

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