# Single line JSON file not being processed

**URL:** <https://discuss.elastic.co/t/single-line-json-file-not-being-processed/205287>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 25, 2019, 3:02pm UTC](https://discuss.elastic.co/t/single-line-json-file-not-being-processed/205287 "2019-10-25T15:02:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![butchkelley](https://avatars.discourse-cdn.com/v4/letter/b/a4c791/32.png) [@butchkelley](https://discuss.elastic.co/u/butchkelley)\
**Post date:** [October 25, 2019, 3:02pm UTC](https://discuss.elastic.co/t/single-line-json-file-not-being-processed/205287/1 "2019-10-25T15:02:13Z")

</div>

Hi Team,

I have Filebeat version 6.7.1 configured to read numerous JSON files as they come/go from a single directory. Some of the JSON files contain a single line with no newline character at the end.

My problem is that Filebeat will not process the single JSON line files unless I modify them by adding a newline character.

I tried adding the **close\_eof: true** config option thinking that may help but no luck.

Any ideas?

Thanks,  
Butch

---

<div class="post-metadata">

**Author:** ![butchkelley](https://avatars.discourse-cdn.com/v4/letter/b/a4c791/32.png) [@butchkelley](https://discuss.elastic.co/u/butchkelley)\
**Post date:** [October 25, 2019, 4:00pm UTC](https://discuss.elastic.co/t/single-line-json-file-not-being-processed/205287/2 "2019-10-25T16:00:54Z")

</div>

Just found this in the Filebeat docs:

## Filebeat isn’t shipping the last line of a file

Filebeat uses a newline character to detect the end of an event. If lines are added incrementally to a file that’s being harvested, a newline character is required after the last line, or Filebeat will not read the last line of the file.

---

<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 22, 2019, 4:00pm UTC](https://discuss.elastic.co/t/single-line-json-file-not-being-processed/205287/3 "2019-11-22T16:00:58Z")

</div>

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