# Multiple logstash-forwarder on same server

**URL:** <https://discuss.elastic.co/t/multiple-logstash-forwarder-on-same-server/53477>\
**Category:** Logstash\
**Created:** [June 21, 2016, 9:55am UTC](https://discuss.elastic.co/t/multiple-logstash-forwarder-on-same-server/53477 "2016-06-21T09:55:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![YLombardi](https://avatars.discourse-cdn.com/v4/letter/y/43a26b/32.png) [@YLombardi](https://discuss.elastic.co/u/YLombardi)\
**Post date:** [June 21, 2016, 9:55am UTC](https://discuss.elastic.co/t/multiple-logstash-forwarder-on-same-server/53477/1 "2016-06-21T09:55:25Z")

</div>

Hi.

On my server, I have log file in json format and in plain text format.  
I want to separate them on two logstash input (one for with a json codec and one with plain codec).  
My logstash use two lumberjack input that listen on port 5000 and 5001.

Can I have two logstash-forwarder on my server ?  
One that send logs on port 5000 and one that send logs on port 5001.

If yes, how can I do this ?

---

<div class="post-metadata">

**Author:** ![YLombardi](https://avatars.discourse-cdn.com/v4/letter/y/43a26b/32.png) [@YLombardi](https://discuss.elastic.co/u/YLombardi)\
**Post date:** [June 21, 2016, 12:44pm UTC](https://discuss.elastic.co/t/multiple-logstash-forwarder-on-same-server/53477/2 "2016-06-21T12:44:25Z")

</div>

I found a solution to have multiple instance of logstash-forwarder here :

> <https://github.com/elastic/logstash-forwarder/issues/453#issuecomment-100954008>

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [June 21, 2016, 1:37pm UTC](https://discuss.elastic.co/t/multiple-logstash-forwarder-on-same-server/53477/3 "2016-06-21T13:37:58Z")

</div>

I would switch to using Filebeat. Logstash-forwarder is deprecated.

---

<div class="post-metadata">

**Author:** ![YLombardi](https://avatars.discourse-cdn.com/v4/letter/y/43a26b/32.png) [@YLombardi](https://discuss.elastic.co/u/YLombardi)\
**Post date:** [June 21, 2016, 2:06pm UTC](https://discuss.elastic.co/t/multiple-logstash-forwarder-on-same-server/53477/4 "2016-06-21T14:06:34Z")

</div>

I plan to switch to Filebeat when version 5 will be released.  
I need the json support that is not present in the current release of Filebeat.

---

<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:** [July 6, 2017, 4:51am UTC](https://discuss.elastic.co/t/multiple-logstash-forwarder-on-same-server/53477/5 "2017-07-06T04:51:28Z")

</div>


