# Logstash configuration with several sources

**URL:** <https://discuss.elastic.co/t/logstash-configuration-with-several-sources/152848>\
**Category:** Logstash\
**Created:** [October 17, 2018, 1:24pm UTC](https://discuss.elastic.co/t/logstash-configuration-with-several-sources/152848 "2018-10-17T13:24:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ludovic9](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@Ludovic9](https://discuss.elastic.co/u/Ludovic9)\
**Post date:** [October 17, 2018, 1:24pm UTC](https://discuss.elastic.co/t/logstash-configuration-with-several-sources/152848/1 "2018-10-17T13:24:45Z")

</div>

Hello  
I have some questions about my future configuration of logstash.  
At this time, I have

One input :

> ```
> input {
> beats {
> port => 5044
> }
> }
> 
> ```

one grok filter to parse a log of a ftp software

and one output :

> output {  
> elasticsearch {  
> hosts =\> "fqdn:9200"  
> manage\_template =\> false  
> index =\> "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"  
> }  
> stdout {  
> codec =\> rubydebug  
> }
> 
> }

I have a second filter to add (from another software but same port because it's a beat), so my question is :

can I put this second filter in the same file ?  
how I can send in another indice (I don't want to share all my messages in the same indice) ?  
or the best practice is to put my second filter in another file (with one block input, one block filter, one block output ?) and do the same for the other filters ?

thank you for your reply ?

---

<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:** [November 14, 2018, 1:24pm UTC](https://discuss.elastic.co/t/logstash-configuration-with-several-sources/152848/2 "2018-11-14T13:24:46Z")

</div>

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