# Creating Multiple Elastic Search Ingest Pipelines

**URL:** https://discuss.elastic.co/t/creating-multiple-elastic-search-ingest-pipelines/309206
**Category:** Elasticsearch
**Tags:** ingest-pipeline
**Created:** [July 8, 2022, 1:49pm UTC](https://discuss.elastic.co/t/creating-multiple-elastic-search-ingest-pipelines/309206 "2022-07-08T13:49:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![scott\_stash](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@scott\_stash](https://discuss.elastic.co/u/scott_stash)
#### Post date: [July 8, 2022, 1:49pm UTC](https://discuss.elastic.co/t/creating-multiple-elastic-search-ingest-pipelines/309206/1 "2022-07-08T13:49:35Z")

</div>

I have created multiple ingest pipelines. I can export these pipelines from the dev console with the following command: GET \_ingest/pipeline/logs\*

I copy this into a .json file, I would like to now import this back into my node or another node(I use Ansible). If I attempt to POST to /\_ingest/pipeline/ with the body as the contents of a json file I get this:

```auto
{"error": "Incorrect HTTP method for uri [/_ingest/pipeline/] and method [PUT], allowed: [GET]", "status": 405}, "msg": "Status code was 405 and not [200]: HTTP Error 405: Method Not Allowed", "redirected": false, "status": 405, "url": "https://www.servername.com:9200/_ingest/pipeline/", "x_elastic_product": "Elasticsearch"}

```

Is this possible? Or do I need to iterate through each pipeline and PUT /\_ingest/pipeline/{{ key\_in\_json}}

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [July 8, 2022, 1:54pm UTC](https://discuss.elastic.co/t/creating-multiple-elastic-search-ingest-pipelines/309206/2 "2022-07-08T13:54:23Z")

</div>

To create an ingest pipeline you need to pass the pipeline-id in the endpoint as described in the [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/put-pipeline-api.html#put-pipeline-api).

So, you will need to use `PUT _ingest/pipeline/{{key_in_json}}`, also, each json should have just one ingest pipeline.

---

<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: [August 5, 2022, 1:54pm UTC](https://discuss.elastic.co/t/creating-multiple-elastic-search-ingest-pipelines/309206/3 "2022-08-05T13:54:24Z")

</div>

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