# Input STDIN 4096 character input limit?

**URL:** <https://discuss.elastic.co/t/input-stdin-4096-character-input-limit/50630>\
**Category:** Logstash\
**Created:** [May 21, 2016, 6:40pm UTC](https://discuss.elastic.co/t/input-stdin-4096-character-input-limit/50630 "2016-05-21T18:40:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmg0122](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmg0122/32/9859_2.png) [@dmg0122](https://discuss.elastic.co/u/dmg0122)\
**Post date:** [May 21, 2016, 6:40pm UTC](https://discuss.elastic.co/t/input-stdin-4096-character-input-limit/50630/1 "2016-05-21T18:40:03Z")

</div>

File wc:

```auto
#] wc file
   1 22 4097 file

```

Processing some json from the STDIN input I get the following:

:exception=\>#\<LogStash::Json::ParserError: Unexpected end-of-input in VALUE\_STRING  
at [Source: [B@1d6f5292; line: 1, column: 8191]\>, :level=\>:warn}

After cutting off sections of the data piece by piece I was able to get it to successfully output to the stdout rubydebug codec when the character count was at or below 4096.

Is there a known issue in regards to large sets of json data being pass through the STDIN input?

Tried on logstash latest stable and 5.0.2 in docker and also outside of docker.

---

<div class="post-metadata">

**Author:** ![raivis.krumins](https://avatars.discourse-cdn.com/v4/letter/r/ebca7d/32.png) [@raivis.krumins](https://discuss.elastic.co/u/raivis.krumins)\
**Post date:** [February 24, 2017, 12:47pm UTC](https://discuss.elastic.co/t/input-stdin-4096-character-input-limit/50630/2 "2017-02-24T12:47:58Z")

</div>

Hi!

It looks like this limit is hard-coded in plugin source (size in bytes):

> <https://github.com/logstash-plugins/logstash-input-stdin/blob/v3.2.2/lib/logstash/inputs/stdin.rb#L17>

---

<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:** [July 6, 2017, 4:28am UTC](https://discuss.elastic.co/t/input-stdin-4096-character-input-limit/50630/3 "2017-07-06T04:28:18Z")

</div>


