# Setting multiple pipelines for elasticserach.output

**URL:** https://discuss.elastic.co/t/setting-multiple-pipelines-for-elasticserach-output/269999
**Category:** Beats
**Tags:** metricbeat, winlogbeat
**Created:** [April 13, 2021, 12:04pm UTC](https://discuss.elastic.co/t/setting-multiple-pipelines-for-elasticserach-output/269999 "2021-04-13T12:04:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Adriann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adriann/32/77780_2.png) [@Adriann](https://discuss.elastic.co/u/Adriann)
#### Post date: [April 13, 2021, 12:04pm UTC](https://discuss.elastic.co/t/setting-multiple-pipelines-for-elasticserach-output/269999/1 "2021-04-13T12:04:53Z")

</div>

Hello,

Is It possible to use for example metricbeat.yml config file for setting multiple ingest node pipelines for the same document/index? I triend something like this but only the first one work.

```
#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["https://ip:9200"]
  username: "${ES_LOG}"
  password: "${ES_PWD}"
  ssl.certificate_authorities: [.crt]
  ssl.certificate: ".crt"
  ssl.key: ".key"	
 # Protocol - either `http` (default) or `https`.
  protocol: "https"
  pipelines:
  - pipeline : default-additional-pipeline
    and:
  - pipeline : service-level-field-name-pipeline

```

or something like this

```
  pipelines:
  - pipeline : default-additional-pipeline
  - pipeline : service-level-field-name-pipeline

```

but in both cases, only the first one is applied.

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [April 13, 2021, 3:52pm UTC](https://discuss.elastic.co/t/setting-multiple-pipelines-for-elasticserach-output/269999/2 "2021-04-13T15:52:22Z")

</div>

Hi @Adriann

No that is not supported However there is great way to do this.

You just create a top level pipeline that then can call sub pipelines even with conditionals it like building modular code. See [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest.html#conditionally-apply-pipelines) for and example.

---

<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: [May 11, 2021, 5:52pm UTC](https://discuss.elastic.co/t/setting-multiple-pipelines-for-elasticserach-output/269999/3 "2021-05-11T17:52:26Z")

</div>

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