Use one ingest pipeline as default_pipeline for different indexes

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:

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

but I got

{
  "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

Hi!
you need update settings api.

thank you @Tomo_M

1 Like

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