# LogStash Codec

**URL:** <https://discuss.elastic.co/t/logstash-codec/209210>\
**Category:** Logstash\
**Created:** [November 25, 2019, 2:48am UTC](https://discuss.elastic.co/t/logstash-codec/209210 "2019-11-25T02:48:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yohan\_al](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yohan_al/32/47589_2.png) [@Yohan\_al](https://discuss.elastic.co/u/Yohan_al)\
**Post date:** [November 25, 2019, 2:48am UTC](https://discuss.elastic.co/t/logstash-codec/209210/1 "2019-11-25T02:48:34Z")

</div>

Hi,

I m facing an issue with a spring boot 2 project and logstash. It seems i use the wrong codec on my TCP configuration.  
tcp {  
port =\> 8050  
codec =\> "json"  
}  
When i checked logstash logs , i see that my log is splited in two lines  
I guess i should switch to json\_lines codec but now it's my python project that are not working anymore.

Is there a way to fix my logback configuration to not split data ?  
should i have to declare 2 inputs to get both of my applications working ?

Thank you in advance for your help

---

<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 23, 2019, 2:48am UTC](https://discuss.elastic.co/t/logstash-codec/209210/2 "2019-12-23T02:48:36Z")

</div>

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