# Default ingest pipeline for index

**URL:** <https://discuss.elastic.co/t/default-ingest-pipeline-for-index/77647>\
**Category:** Elasticsearch\
**Created:** [March 7, 2017, 11:43am UTC](https://discuss.elastic.co/t/default-ingest-pipeline-for-index/77647 "2017-03-07T11:43:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tipuban](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tipuban/32/15768_2.png) [@tipuban](https://discuss.elastic.co/u/tipuban)\
**Post date:** [March 7, 2017, 11:43am UTC](https://discuss.elastic.co/t/default-ingest-pipeline-for-index/77647/1 "2017-03-07T11:43:46Z")

</div>

Hi there,  
Currently our application is ingesting data from multiple sources, and those sources don't always know about our ingest pipelines, which is why it would be very useful to **allow setting of a default pipeline for ALL ingest operations performed on a specific index** (or even multiple indices).

Basically when creating an ingest pipeline, it would be useful to have a setting that specifies which of the indices should be automatically routed through this pipeline by default, without having to specify the _?pipeline=_ request parameter when inserting documents.

For example, the PUT pipeline request could look like this:

```
PUT _ingest/pipeline/my-pipeline-id
{
  "description" : "describe pipeline",
  "indices": ["articles","announcements"],
  "processors" : [
    {
      "set" : {
        "field": "foo",
        "value": "bar"
      }
    }
  ]
}

```

Thank you!

* * *

Later edit:  
I see this is already being discussed on GitHub. For anybody interested, the topic is located at [5.0 Default pipelines](https://github.com/elastic/elasticsearch/issues/21101)

---

<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:** [April 4, 2017, 11:43am UTC](https://discuss.elastic.co/t/default-ingest-pipeline-for-index/77647/2 "2017-04-04T11:43:51Z")

</div>

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