# 4096 characters input limitation! missing part of logs in message field

**URL:** <https://discuss.elastic.co/t/4096-characters-input-limitation-missing-part-of-logs-in-message-field/217522>\
**Category:** Logstash\
**Created:** [February 2, 2020, 12:25pm UTC](https://discuss.elastic.co/t/4096-characters-input-limitation-missing-part-of-logs-in-message-field/217522 "2020-02-02T12:25:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kasra](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@kasra](https://discuss.elastic.co/u/kasra)\
**Post date:** [February 2, 2020, 12:25pm UTC](https://discuss.elastic.co/t/4096-characters-input-limitation-missing-part-of-logs-in-message-field/217522/1 "2020-02-02T12:25:05Z")

</div>

I have issue with sending logs which have more than 4096 characters!  
the thing is some of my logs contain more than 4096 characters and the result is jsonparsefailure .

I have also used multiline codec for my input but it doesn't make any effect.  
my log format is : a nested array of JSON  
[JSON,JSON]

```
input {
  stdin {
    codec => multiline {
      pattern => "\n"
      negate => false
      what => "previous"
    }
  }
}

filter {

  json {
        source => "message"
        target => "message"
    }
}

```

is there any solution for this input limitation(read line limitation: [Input STDIN 4096 character input limit?](https://discuss.elastic.co/t/input-stdin-4096-character-input-limit/50630))?!

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 2, 2020, 1:49pm UTC](https://discuss.elastic.co/t/4096-characters-input-limitation-missing-part-of-logs-in-message-field/217522/2 "2020-02-02T13:49:14Z")

</div>

You may be hitting [this](https://github.com/logstash-plugins/logstash-codec-multiline/issues/37) issue.

---

<div class="post-metadata">

**Author:** ![kasra](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@kasra](https://discuss.elastic.co/u/kasra)\
**Post date:** [February 2, 2020, 2:03pm UTC](https://discuss.elastic.co/t/4096-characters-input-limitation-missing-part-of-logs-in-message-field/217522/3 "2020-02-02T14:03:17Z")

</div>

I'm not sure if it is related to that issue.  
I've even tested it without multiline, the problem remains the same "message" field just get filled with 4096 characters of my raw log.. the rests get omited.

---

<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:** [March 1, 2020, 2:13pm UTC](https://discuss.elastic.co/t/4096-characters-input-limitation-missing-part-of-logs-in-message-field/217522/4 "2020-03-01T14:13:48Z")

</div>

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