# File input adds escaping

**URL:** <https://discuss.elastic.co/t/file-input-adds-escaping/154992>\
**Category:** Logstash\
**Created:** [November 1, 2018, 10:39am UTC](https://discuss.elastic.co/t/file-input-adds-escaping/154992 "2018-11-01T10:39:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sapirkallmann](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@sapirkallmann](https://discuss.elastic.co/u/sapirkallmann)\
**Post date:** [November 1, 2018, 10:39am UTC](https://discuss.elastic.co/t/file-input-adds-escaping/154992/1 "2018-11-01T10:39:27Z")

</div>

I would like to disable escaping when receiving events from a file.  
For instance, here is the event (input is a file):  
a="hello" b="world"  
This is the output:  
a=\"hello\" b=\"world\"\r"

While using other inputs such as tcp, udp, no escaping is being added.

How to disable and remove the escaping? Is there a generic solution for that? codec/plugins and not a fix in the filter itself?

I prefer not using: msg.gsub! ('"', '"') 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:** [November 29, 2018, 10:39am UTC](https://discuss.elastic.co/t/file-input-adds-escaping/154992/2 "2018-11-29T10:39:33Z")

</div>

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