# Use one ingest pipeline as default\_pipeline for different indexes

**URL:** https://discuss.elastic.co/t/use-one-ingest-pipeline-as-default-pipeline-for-different-indexes/296266
**Category:** Elasticsearch
**Tags:** ingest-pipeline
**Created:** [February 4, 2022, 8:36am UTC](https://discuss.elastic.co/t/use-one-ingest-pipeline-as-default-pipeline-for-different-indexes/296266 "2022-02-04T08:36:46Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![m-cd](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@m-cd](https://discuss.elastic.co/u/m-cd)
#### Post date: [February 4, 2022, 8:36am UTC](https://discuss.elastic.co/t/use-one-ingest-pipeline-as-default-pipeline-for-different-indexes/296266/1 "2022-02-04T08:36:46Z")

</div>

Hi All,

I'm a little bit new on the ELK world...  
So sorry for my newbie question...  
I setup a working ingest pipeline (policy and processors) and it works like a charm on one index as default\_pipeline.  
I would like to use this ingest pipeline also as default\_pipeline for another index.  
I tried to add the default\_pipeline at the second with:

```auto
PUT my-index_2 
{
  "settings": {
    "default_pipeline" : "my_policy"
    }
}

```

but I got

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "resource_already_exists_exception",
        "reason" : "index [my-index_2/xD280Z_JSsGNOD0V-8xGqA] already exists",
        "index_uuid" : "xD280Z_JSsGNOD0V-8xGqA",
        "index" : "my-index_2 "
      }
    ],
    "type" : "resource_already_exists_exception",
    "reason" : "index [my-index_2/xD280Z_JSsGNOD0V-8xGqA] already exists",
    "index_uuid" : "xD280Z_JSsGNOD0V-8xGqA",
    "index" : "my-index_2 "
  },
  "status" : 400
}

```

Could anyone point me towards the solution?  
Thanks in advance!  
M-CD

---

<div class="post-metadata">

### Author: ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)
#### Post date: [February 4, 2022, 10:59pm UTC](https://discuss.elastic.co/t/use-one-ingest-pipeline-as-default-pipeline-for-different-indexes/296266/2 "2022-02-04T22:59:59Z")

</div>

Hi!  
you need update settings api.

> **[Update index settings API | Elasticsearch Guide \[7.17\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html)**

---

<div class="post-metadata">

### Author: ![m-cd](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@m-cd](https://discuss.elastic.co/u/m-cd)
#### Post date: [February 6, 2022, 9:15am UTC](https://discuss.elastic.co/t/use-one-ingest-pipeline-as-default-pipeline-for-different-indexes/296266/3 "2022-02-06T09:15:05Z")

</div>

thank you @Tomo_M

---

<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: [March 6, 2022, 9:15am UTC](https://discuss.elastic.co/t/use-one-ingest-pipeline-as-default-pipeline-for-different-indexes/296266/4 "2022-03-06T09:15:57Z")

</div>

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