# Configuration with multiple types

**URL:** <https://discuss.elastic.co/t/configuration-with-multiple-types/119774>\
**Category:** Logstash\
**Created:** [February 14, 2018, 10:52am UTC](https://discuss.elastic.co/t/configuration-with-multiple-types/119774 "2018-02-14T10:52:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adren/32/27681_2.png) [@Adren](https://discuss.elastic.co/u/Adren)\
**Post date:** [February 14, 2018, 10:52am UTC](https://discuss.elastic.co/t/configuration-with-multiple-types/119774/1 "2018-02-14T10:52:04Z")

</div>

Hello,

I'm questionning myself about the configuration of logstash, if I receive UDP logs to a port but these logs may have differents types, how can I configure the UDP input then? As I can't listen to the same port more than once. How can I do ? I'll send you my configuration file - I know it is incorrect, but it is for the visual reprenstation of what I want 🙂 -.

```
input {
  udp {
      port => 514
      type => "syslog"
      type => "event"
      type => "traffic"
      type => "utm"
    } 
}
```

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 14, 2018, 11:22am UTC](https://discuss.elastic.co/t/configuration-with-multiple-types/119774/2 "2018-02-14T11:22:23Z")

</div>

I suspect you will need to use filters to determine the type based on the content or metadata of the message.

---

<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:** [March 14, 2018, 11:22am UTC](https://discuss.elastic.co/t/configuration-with-multiple-types/119774/3 "2018-03-14T11:22:25Z")

</div>

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