# How to send logs from different files to different logstash?

**URL:** https://discuss.elastic.co/t/how-to-send-logs-from-different-files-to-different-logstash/57826
**Category:** Beats
**Tags:** filebeat
**Created:** [August 11, 2016, 1:40pm UTC](https://discuss.elastic.co/t/how-to-send-logs-from-different-files-to-different-logstash/57826 "2016-08-11T13:40:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![budm](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@budm](https://discuss.elastic.co/u/budm)
#### Post date: [August 11, 2016, 1:40pm UTC](https://discuss.elastic.co/t/how-to-send-logs-from-different-files-to-different-logstash/57826/1 "2016-08-11T13:40:03Z")

</div>

I have two files which I need to send to logstash:  
/var/log/file1.log  
/var/log/file2.log

and I'd like to send content of `file1.log` to `host1:port1`, but `file2.log` to `host2:port2`. Is it even possible to do somehow?

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [August 11, 2016, 1:56pm UTC](https://discuss.elastic.co/t/how-to-send-logs-from-different-files-to-different-logstash/57826/2 "2016-08-11T13:56:30Z")

</div>

Not within a single Filebeat instance.

---

<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: [September 1, 2016, 1:40pm UTC](https://discuss.elastic.co/t/how-to-send-logs-from-different-files-to-different-logstash/57826/3 "2016-09-01T13:40:09Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
