# Separate syslog

**URL:** <https://discuss.elastic.co/t/separate-syslog/355689>\
**Category:** Logstash\
**Created:** [March 19, 2024, 8:13am UTC](https://discuss.elastic.co/t/separate-syslog/355689 "2024-03-19T08:13:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frances\_Chu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frances_chu/32/127298_2.png) [@Frances\_Chu](https://discuss.elastic.co/u/Frances_Chu)\
**Post date:** [March 19, 2024, 8:13am UTC](https://discuss.elastic.co/t/separate-syslog/355689/1 "2024-03-19T08:13:06Z")

</div>

I need to receive syslog from different systems.  
All syslogs are using UDP 514 port and cannot be changed in the source

Now I need to separate different syslogs in logstash.  
logstash system reserved port below 1024.

So now I got two solutions

**Solution A**

1. In logstash use port forwarding. To forward the syslog to port 5514 and presrve source IP address
2. filter the source [host] [ip] and adding tags to the syslog

\*\*Solution B \*\*

1. In logstash use port forwarding rule. To forward syslogs to different ports. e.g. 5514, 6514
2. Separate logs by using port number.

Just wonder which solution is better. Any best practice.

---

<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:** [April 16, 2024, 8:13am UTC](https://discuss.elastic.co/t/separate-syslog/355689/2 "2024-04-16T08:13:08Z")

</div>

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