# Syslog Input

**URL:** <https://discuss.elastic.co/t/syslog-input/44048>\
**Category:** Logstash\
**Created:** [March 10, 2016, 3:56pm UTC](https://discuss.elastic.co/t/syslog-input/44048 "2016-03-10T15:56:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jackal9301](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jackal9301/32/5748_2.png) [@Jackal9301](https://discuss.elastic.co/u/Jackal9301)\
**Post date:** [March 10, 2016, 3:56pm UTC](https://discuss.elastic.co/t/syslog-input/44048/1 "2016-03-10T15:56:20Z")

</div>

What is the best way to differentiate between devices all sending to syslog? for example if I have an ASA a Switch and a Router all sending syslog to logstash how can I tell them apart?

---

<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:** [March 10, 2016, 6:16pm UTC](https://discuss.elastic.co/t/syslog-input/44048/2 "2016-03-10T18:16:39Z")

</div>

You can for example

- have multiple network listeners on different ports (tagging incoming events differently),
- use a conditional with a regexp match to try to figure out which kind of device it is, or
- use the IP address of the sending device and somehow look up what kind of device it is.

---

<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, 5:07am UTC](https://discuss.elastic.co/t/syslog-input/44048/3 "2017-07-06T05:07:30Z")

</div>

Closed on July 6, 2017, 5:07am UTC


