# Ingest pipeline write to different index

**URL:** <https://discuss.elastic.co/t/ingest-pipeline-write-to-different-index/198512>\
**Category:** Elasticsearch\
**Created:** [September 7, 2019, 2:55pm UTC](https://discuss.elastic.co/t/ingest-pipeline-write-to-different-index/198512 "2019-09-07T14:55:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![larryzhu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larryzhu/32/53759_2.png) [@larryzhu](https://discuss.elastic.co/u/larryzhu)\
**Post date:** [September 7, 2019, 2:55pm UTC](https://discuss.elastic.co/t/ingest-pipeline-write-to-different-index/198512/1 "2019-09-07T14:55:19Z")

</div>

I would like to create new documents based on results from the ingest pipeline. is that possible?  
for example, if there is a log message that says "tests failed", I would like to write into a different "failed\_tests" index with "test name, test id" values etc from the ingest pipeline of test logs.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 7, 2019, 3:25pm UTC](https://discuss.elastic.co/t/ingest-pipeline-write-to-different-index/198512/2 "2019-09-07T15:25:19Z")

</div>

Welcome.

With a set processor you can change some document metadata like the index name. See [https://www.elastic.co/guide/en/elasticsearch/reference/master/accessing-data-in-pipelines.html](https://www.elastic.co/guide/en/elasticsearch/reference/master/accessing-data-in-pipelines.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:** [October 5, 2019, 3:25pm UTC](https://discuss.elastic.co/t/ingest-pipeline-write-to-different-index/198512/3 "2019-10-05T15:25:20Z")

</div>

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