# Logstash configuration for multiple files

**URL:** https://discuss.elastic.co/t/logstash-configuration-for-multiple-files/227670
**Category:** Logstash
**Created:** [April 12, 2020, 12:29pm UTC](https://discuss.elastic.co/t/logstash-configuration-for-multiple-files/227670 "2020-04-12T12:29:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Saber\_Ben\_Njima](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saber_ben_njima/32/65110_2.png) [@Saber\_Ben\_Njima](https://discuss.elastic.co/u/Saber_Ben_Njima)
#### Post date: [April 12, 2020, 12:29pm UTC](https://discuss.elastic.co/t/logstash-configuration-for-multiple-files/227670/1 "2020-04-12T12:29:35Z")

</div>

Hello i have a problem when i want to configure logstash to filter data for multiple log files where each file has a different structure and separators how can i configure logstash ?

---

<div class="post-metadata">

### Author: ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)
#### Post date: [April 12, 2020, 6:52pm UTC](https://discuss.elastic.co/t/logstash-configuration-for-multiple-files/227670/2 "2020-04-12T18:52:17Z")

</div>

Look at the [multiple pipeline](https://www.elastic.co/guide/en/logstash/current/multiple-pipelines.html#multiple-pipelines) feature.

We mostly configure each pipeline to listen on a different port, but there are many options explained [here.](https://www.elastic.co/guide/en/logstash/current/pipeline-to-pipeline.html#architectural-patterns)

---

<div class="post-metadata">

### Author: ![Saber\_Ben\_Njima](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saber_ben_njima/32/65110_2.png) [@Saber\_Ben\_Njima](https://discuss.elastic.co/u/Saber_Ben_Njima)
#### Post date: [April 25, 2020, 11:48pm UTC](https://discuss.elastic.co/t/logstash-configuration-for-multiple-files/227670/3 "2020-04-25T23:48:10Z")

</div>

thank you

---

<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 23, 2020, 11:48pm UTC](https://discuss.elastic.co/t/logstash-configuration-for-multiple-files/227670/4 "2020-05-23T23:48:10Z")

</div>

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