# Single logstash forwarder sending log to multiple servers

**URL:** <https://discuss.elastic.co/t/single-logstash-forwarder-sending-log-to-multiple-servers/54708>\
**Category:** Logstash\
**Created:** [July 5, 2016, 9:19am UTC](https://discuss.elastic.co/t/single-logstash-forwarder-sending-log-to-multiple-servers/54708 "2016-07-05T09:19:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bubu.senapati](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@bubu.senapati](https://discuss.elastic.co/u/bubu.senapati)\
**Post date:** [July 5, 2016, 9:19am UTC](https://discuss.elastic.co/t/single-logstash-forwarder-sending-log-to-multiple-servers/54708/1 "2016-07-05T09:19:01Z")

</div>

Hi Magnus,  
I have a logstash forwarder which sends multiple log files to multiple servers.

There are two log files- application1.log and application2.log

application1.log needs to sent to logstash1 in server1.  
application2.log needs to be sent to logstash2 in server2.  
How can i achieve this in one logstash-forwarder.config.  
There will be two different certificates for server1 and server2.  
How it can be managed through the logstash-forwarder.config.  
Could you please provide an example configuration.

regards  
Dibyananda

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 5, 2016, 10:04am UTC](https://discuss.elastic.co/t/single-logstash-forwarder-sending-log-to-multiple-servers/54708/2 "2016-07-05T10:04:21Z")

</div>

LSF has been deprecated.

Please use Filebeat instead - [https://www.elastic.co/guide/en/beats/filebeat/current/index.html](https://www.elastic.co/guide/en/beats/filebeat/current/index.html)

---

<div class="post-metadata">

**Author:** ![bubu.senapati](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@bubu.senapati](https://discuss.elastic.co/u/bubu.senapati)\
**Post date:** [July 5, 2016, 10:06am UTC](https://discuss.elastic.co/t/single-logstash-forwarder-sending-log-to-multiple-servers/54708/3 "2016-07-05T10:06:22Z")

</div>

I have already a set up running in production and hence can't do it.  
Can any arrangement be done for the same.

regards  
Dibyananda

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 5, 2016, 10:06am UTC](https://discuss.elastic.co/t/single-logstash-forwarder-sending-log-to-multiple-servers/54708/4 "2016-07-05T10:06:54Z")

</div>

You cannot do this unless you run multiple instances of LSF.

---

<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:49am UTC](https://discuss.elastic.co/t/single-logstash-forwarder-sending-log-to-multiple-servers/54708/5 "2017-07-06T04:49:32Z")

</div>


