# Alternatives to Multiline Codec for logging Java traces with TCP input?

**URL:** <https://discuss.elastic.co/t/alternatives-to-multiline-codec-for-logging-java-traces-with-tcp-input/288784>\
**Category:** Logstash\
**Created:** [November 9, 2021, 3:43pm UTC](https://discuss.elastic.co/t/alternatives-to-multiline-codec-for-logging-java-traces-with-tcp-input/288784 "2021-11-09T15:43:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bennetth](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@bennetth](https://discuss.elastic.co/u/bennetth)\
**Post date:** [November 9, 2021, 3:43pm UTC](https://discuss.elastic.co/t/alternatives-to-multiline-codec-for-logging-java-traces-with-tcp-input/288784/1 "2021-11-09T15:43:08Z")

</div>

Hello all,

I have an issue where I am trying to log Java traces for a TCP input. However, it appears that Logstash truncates the trace to just the first line of the trace. I have attempted to use the multiline codec for this input, and although it does success in concatenating the lines of a trace into a single message, I encounter other issues due to the multiline codec not fully supporting data stream inputs (correct me if I'm wrong).

Because of this, I am looking for alternatives (or simple fixes) for the multiline codec. Perhaps there is a way to use the mutate filter plugin or something? Please advise!

Thanks!

---

<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:** [December 7, 2021, 3:43pm UTC](https://discuss.elastic.co/t/alternatives-to-multiline-codec-for-logging-java-traces-with-tcp-input/288784/2 "2021-12-07T15:43:26Z")

</div>

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