# Multiple pipelines for ingest Node

**URL:** <https://discuss.elastic.co/t/multiple-pipelines-for-ingest-node/167427>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 7, 2019, 10:59am UTC](https://discuss.elastic.co/t/multiple-pipelines-for-ingest-node/167427 "2019-02-07T10:59:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mylyo](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@mylyo](https://discuss.elastic.co/u/mylyo)\
**Post date:** [February 7, 2019, 10:59am UTC](https://discuss.elastic.co/t/multiple-pipelines-for-ingest-node/167427/1 "2019-02-07T10:59:23Z")

</div>

Hello,  
I created a filebeat where i defined multiple sources for input as this way :

```
filebeat.input:
....
paths:
     -"my_path\*.log

```

In order to obtain the appropriate data, i set a pipeline that concerns one among the logs defined above. every thing is fine with my pipeline but it work for just one log. So my questions are :

1. how could i adjust my pipeline to be applied for a specified log?
2. Is it possible to define different pipelines in the same filebeat?  
Thanks for your help.

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [February 7, 2019, 1:06pm UTC](https://discuss.elastic.co/t/multiple-pipelines-for-ingest-node/167427/2 "2019-02-07T13:06:24Z")

</div>

What you need to do is to define a new input for each type of log and use the [pipeline](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#_literal_pipeline_literal) option in the input, with this configured Filebeat will route the event to the appropriate pipeline

---

<div class="post-metadata">

**Author:** ![mylyo](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@mylyo](https://discuss.elastic.co/u/mylyo)\
**Post date:** [February 7, 2019, 1:15pm UTC](https://discuss.elastic.co/t/multiple-pipelines-for-ingest-node/167427/3 "2019-02-07T13:15:39Z")

</div>

Tanks for your reply,  
I just found the solution.  
The solution is to set "when" condition and specify the input file when we set the pepline in the output section just like the syntax in [pipeline](https://www.elastic.co/guide/en/beats/filebeat/current/elasticsearch-output.html#_pipelines) documentation.  
hope it helps 😉

---

<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 7, 2019, 1:15pm UTC](https://discuss.elastic.co/t/multiple-pipelines-for-ingest-node/167427/4 "2019-03-07T13:15:44Z")

</div>

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