# \_jsonparsefailure when ingesting a lot of files

**URL:** https://discuss.elastic.co/t/jsonparsefailure-when-ingesting-a-lot-of-files/132537
**Category:** Logstash
**Created:** [May 18, 2018, 8:22pm UTC](https://discuss.elastic.co/t/jsonparsefailure-when-ingesting-a-lot-of-files/132537 "2018-05-18T20:22:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![AloysiusParedes](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@AloysiusParedes](https://discuss.elastic.co/u/AloysiusParedes)
#### Post date: [May 18, 2018, 8:22pm UTC](https://discuss.elastic.co/t/jsonparsefailure-when-ingesting-a-lot-of-files/132537/1 "2018-05-18T20:22:59Z")

</div>

I noticed that some of my files are not being ingested properly with the "\_jsonparsefailure" tag.

When I take a look at the message it received, it is indeed receiving only part of the JSON file. I suspect that when Logstash sees a lot of new files at once, part of the JSON file gets cut off, and Logstash will parse the JSON file incorrectly.

Anyone else run into this issue?

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [May 23, 2018, 7:06pm UTC](https://discuss.elastic.co/t/jsonparsefailure-when-ingesting-a-lot-of-files/132537/2 "2018-05-23T19:06:58Z")

</div>

What does an example file look like? What does your configuration look like?

---

<div class="post-metadata">

### Author: ![AloysiusParedes](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@AloysiusParedes](https://discuss.elastic.co/u/AloysiusParedes)
#### Post date: [May 23, 2018, 7:28pm UTC](https://discuss.elastic.co/t/jsonparsefailure-when-ingesting-a-lot-of-files/132537/3 "2018-05-23T19:28:22Z")

</div>

@magnusbaeck

```
> input{
> file{
> path => /media/sf_folder/*json
> codec => json
> }
> }

```

I think the issue is that I am using a VM. and I am ingesting files through a Shared Folder. The issue was resolved when I ingested files that is local to the VM.

---

<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: [June 20, 2018, 7:28pm UTC](https://discuss.elastic.co/t/jsonparsefailure-when-ingesting-a-lot-of-files/132537/4 "2018-06-20T19:28:22Z")

</div>

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