# Filebeat send logs to different port

**URL:** <https://discuss.elastic.co/t/filebeat-send-logs-to-different-port/335729>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 12, 2023, 2:42am UTC](https://discuss.elastic.co/t/filebeat-send-logs-to-different-port/335729 "2023-06-12T02:42:27Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [June 13, 2023, 1:30am UTC](https://discuss.elastic.co/t/filebeat-send-logs-to-different-port/335729/7 "2023-06-13T01:30:05Z")

</div>

You can do this in a single instance of Filebeat as long as you are tagging the events and then using a `when` clause. [Filebeat conditional output logstash](https://discuss.elastic.co/t/filebeat-conditional-output-logstash/128756) has an example of that.

---

_[View the full topic](https://discuss.elastic.co/t/filebeat-send-logs-to-different-port/335729)._
