# Altering deleting control characters on tcp stream import

**URL:** <https://discuss.elastic.co/t/altering-deleting-control-characters-on-tcp-stream-import/159181>\
**Category:** Logstash\
**Created:** [December 3, 2018, 1:03pm UTC](https://discuss.elastic.co/t/altering-deleting-control-characters-on-tcp-stream-import/159181 "2018-12-03T13:03:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![confused](https://avatars.discourse-cdn.com/v4/letter/c/f08c70/32.png) [@confused](https://discuss.elastic.co/u/confused)\
**Post date:** [December 3, 2018, 1:03pm UTC](https://discuss.elastic.co/t/altering-deleting-control-characters-on-tcp-stream-import/159181/1 "2018-12-03T13:03:44Z")

</div>

Hi I have a logstash.conf input to import data:  
// { tcp{ codec =\> "json" mode =\> "client" }}  
This is importing some data, but my data has a ctrl 03 character at the end of each line rather than newline.  
I have tried using  
//codec =\> json\_lines {delimiter =\> "\03"}  
//codec =\> json\_lines {delimiter =\> "\u0003"} etc.  
My understanding is that the json\_lines entry with delimiter should replace the control char with a newline and process properly.  
Can anyone help?  
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 31, 2018, 1:03pm UTC](https://discuss.elastic.co/t/altering-deleting-control-characters-on-tcp-stream-import/159181/2 "2018-12-31T13:03:57Z")

</div>

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