# UDP Input and Multiline codec

**URL:** <https://discuss.elastic.co/t/udp-input-and-multiline-codec/54758>\
**Category:** Logstash\
**Created:** [July 5, 2016, 3:24pm UTC](https://discuss.elastic.co/t/udp-input-and-multiline-codec/54758 "2016-07-05T15:24:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)\
**Post date:** [July 5, 2016, 3:24pm UTC](https://discuss.elastic.co/t/udp-input-and-multiline-codec/54758/1 "2016-07-05T15:24:38Z")

</div>

I did not have time to look though the code yet but was hoping for a quick answer

Does the multi line codec apply to all incoming data (IE possible to have 2 different servers mix data together. Or does the UDP Listener know the input is coming from one IP and only applies the Multiline from that incoming data?

IE

* * *

If server A sends

> date blah blah blah  
> blah blah blah

And server B sends

> yadah yahdah yadah  
> date yahdah yahday yahda

* * *

would I possible get 2 events like

> blah blah blah  
> blah blah blah  
> yadah yahdah yadah

and

> yahdah yahday yahda

* * *

or would I get 3 events

> blah blah blah  
> blah blah blah

This

> yadah yahdah yadah

and

> yahdah yahday yahda

---

<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:** [July 5, 2016, 10:27pm UTC](https://discuss.elastic.co/t/udp-input-and-multiline-codec/54758/2 "2016-07-05T22:27:14Z")

</div>

The codec applies to all events received in the input, irrespective of where they came from.

---

<div class="post-metadata">

**Author:** ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)\
**Post date:** [July 6, 2016, 2:52pm UTC](https://discuss.elastic.co/t/udp-input-and-multiline-codec/54758/3 "2016-07-06T14:52:19Z")

</div>

Thanks man! I appreciate you looking. Maybe I will add this to the issues on the input or clone and try it myself.

---

<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, 4:49am UTC](https://discuss.elastic.co/t/udp-input-and-multiline-codec/54758/4 "2017-07-06T04:49:17Z")

</div>


