# Single Line Logs - No newline character

**URL:** <https://discuss.elastic.co/t/single-line-logs-no-newline-character/254941>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 10, 2020, 3:51pm UTC](https://discuss.elastic.co/t/single-line-logs-no-newline-character/254941 "2020-11-10T15:51:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CWelsh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cwelsh/32/80014_2.png) [@CWelsh](https://discuss.elastic.co/u/CWelsh)\
**Post date:** [November 10, 2020, 3:51pm UTC](https://discuss.elastic.co/t/single-line-logs-no-newline-character/254941/1 "2020-11-10T15:51:48Z")

</div>

Filebeat documentation is very clear that logs not ending in a newline character will not be processed by filebeat: [Documentation](https://www.elastic.co/guide/en/beats/filebeat/master/newline-character-required-eof.html)

I do however have a number of logs which are written as single JSON objects, in a single line, which does not terminate with a newline character. I am unable to change the logger to add this newline character.

Has anyone found any solutions to forcing filebeat to read this?

close\_eof or multiline options don't appear to work, and I believe it's the line isn't read into the buffer until the newline character is read? So it will open and close the harvester but nothing has ever been read into the buffer.

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![CWelsh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cwelsh/32/80014_2.png) [@CWelsh](https://discuss.elastic.co/u/CWelsh)\
**Post date:** [December 1, 2020, 11:26am UTC](https://discuss.elastic.co/t/single-line-logs-no-newline-character/254941/2 "2020-12-01T11:26:07Z")

</div>

Bump

---

<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 29, 2020, 1:26pm UTC](https://discuss.elastic.co/t/single-line-logs-no-newline-character/254941/3 "2020-12-29T13:26:19Z")

</div>

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