# Input file plugin not reading bigger json events

**URL:** <https://discuss.elastic.co/t/input-file-plugin-not-reading-bigger-json-events/66787>\
**Category:** Logstash\
**Created:** [November 21, 2016, 9:45pm UTC](https://discuss.elastic.co/t/input-file-plugin-not-reading-bigger-json-events/66787 "2016-11-21T21:45:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![satheeshravir](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@satheeshravir](https://discuss.elastic.co/u/satheeshravir)\
**Post date:** [November 21, 2016, 9:45pm UTC](https://discuss.elastic.co/t/input-file-plugin-not-reading-bigger-json-events/66787/1 "2016-11-21T21:45:52Z")

</div>

Hi,  
I am trying to process JSON logs using input-file plugin. Log is written to a json file. Input file plugin reads small JSON object without any issue (I don't know the exact size). When the JSON objects gets bigger it ignores the event altogether. (Approximately the size of JSON is 3KB). Only one event of size 3KB is available in the file. Please let me know what is the best way to process bigger logs using file input plugin.

Thanks,  
Satheesh

---

<div class="post-metadata">

**Author:** ![satheeshravir](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@satheeshravir](https://discuss.elastic.co/u/satheeshravir)\
**Post date:** [November 22, 2016, 5:39pm UTC](https://discuss.elastic.co/t/input-file-plugin-not-reading-bigger-json-events/66787/2 "2016-11-22T17:39:42Z")

</div>

Found a workaround by splitting the logs and upserting multiple logs with same id. Please check this issue related to upsert. It could save you some time. [https://github.com/logstash-plugins/logstash-output-elasticsearch/issues/383](https://github.com/logstash-plugins/logstash-output-elasticsearch/issues/383)

---

<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 20, 2016, 5:39pm UTC](https://discuss.elastic.co/t/input-file-plugin-not-reading-bigger-json-events/66787/3 "2016-12-20T17:39:53Z")

</div>

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