# Send data to right pipeline from two CSV files

**URL:** https://discuss.elastic.co/t/send-data-to-right-pipeline-from-two-csv-files/126700
**Category:** Logstash
**Created:** [April 4, 2018, 9:05am UTC](https://discuss.elastic.co/t/send-data-to-right-pipeline-from-two-csv-files/126700 "2018-04-04T09:05:46Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![mladen](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@mladen](https://discuss.elastic.co/u/mladen)
#### Post date: [April 5, 2018, 2:41pm UTC](https://discuss.elastic.co/t/send-data-to-right-pipeline-from-two-csv-files/126700/4 "2018-04-05T14:41:13Z")

</div>

Thank you @Badger for point me to the right direction. I didn't have a clue what is happening in background 🙂. From this [post](https://discuss.elastic.co/t/combining-several-logstash-config-files-into-one-how-do-you-do-it/33546) I released that every data stream will be processed with every filter in all pipelines. If we want to control the flow we need to use conditionals. But what is happening if we have for example 50 servers (50 filebeat-s agent) 🙂? What is the best practice in this situation?

Reading articles I found that problem with multiple log files can solve using multiple instances of filebeat. Post is form [here](https://discuss.elastic.co/t/logstash-6-multiple-pipelines-for-one-input/107929). Could someone explain to me how this solves the problem?

---

_[View the full topic](https://discuss.elastic.co/t/send-data-to-right-pipeline-from-two-csv-files/126700)._
