# Cannot index event publisher - new line

**URL:** <https://discuss.elastic.co/t/cannot-index-event-publisher-new-line/318751>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 11, 2022, 3:25pm UTC](https://discuss.elastic.co/t/cannot-index-event-publisher-new-line/318751 "2022-11-11T15:25:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![arhodoula](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@arhodoula](https://discuss.elastic.co/u/arhodoula)\
**Post date:** [November 11, 2022, 3:25pm UTC](https://discuss.elastic.co/t/cannot-index-event-publisher-new-line/318751/1 "2022-11-11T15:25:04Z")

</div>

I am getting an illegal\_argument\_exception in filebeat.  
I found out it is because of the "reason": """Illegal unquoted character ((CTRL-CHAR, code 13)): has to be escaped using backslash to be included in string value at [Source: (byte)"

so basically, in some fields there is a new line and this is causing the exception.  
I do not want to change this is the source. is there another way to fix the issue?

---

<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 9, 2022, 5:25pm UTC](https://discuss.elastic.co/t/cannot-index-event-publisher-new-line/318751/2 "2022-12-09T17:25:25Z")

</div>

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