# Multiline codec unexpected line breaks

**URL:** <https://discuss.elastic.co/t/multiline-codec-unexpected-line-breaks/40648>\
**Category:** Logstash\
**Created:** [February 1, 2016, 4:03pm UTC](https://discuss.elastic.co/t/multiline-codec-unexpected-line-breaks/40648 "2016-02-01T16:03:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dieter](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@Dieter](https://discuss.elastic.co/u/Dieter)\
**Post date:** [February 1, 2016, 4:03pm UTC](https://discuss.elastic.co/t/multiline-codec-unexpected-line-breaks/40648/1 "2016-02-01T16:03:53Z")

</div>

Hi all,

Using the multiline codec, there appears to be a bug which adds unexpected line breaks to a message when using tcp or stdin as input (possibly other input plugins too)

With the help of some coders on github I was able to confirm the bug and open an issue:

> <https://github.com/logstash-plugins/logstash-input-tcp/issues/31>

But since I'm not much of a coder myself I was hoping someone over here might have some idea's on how this bug could be solved.

---

<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:13am UTC](https://discuss.elastic.co/t/multiline-codec-unexpected-line-breaks/40648/2 "2017-07-06T05:13:32Z")

</div>


