# Logstash: input codec: line -- what is the longest length accepted?

**URL:** <https://discuss.elastic.co/t/logstash-input-codec-line-what-is-the-longest-length-accepted/122346>\
**Category:** Logstash\
**Created:** [March 3, 2018, 1:08am UTC](https://discuss.elastic.co/t/logstash-input-codec-line-what-is-the-longest-length-accepted/122346 "2018-03-03T01:08:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jose\_Ramierez](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@Jose\_Ramierez](https://discuss.elastic.co/u/Jose_Ramierez)\
**Post date:** [March 3, 2018, 1:08am UTC](https://discuss.elastic.co/t/logstash-input-codec-line-what-is-the-longest-length-accepted/122346/1 "2018-03-03T01:08:36Z")

</div>

We are on logstash 6.2.2 on CentOS 7

We use a custom input spec, type: tcp, codec: line

We are seeing parse errors in the logstash logs.

We wonder: When we send line formatted input, perhaps a super long line is getting truncated/causing a parse error?

What are the limits of the line codec?

---

<div class="post-metadata">

**Author:** ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)\
**Post date:** [March 3, 2018, 12:34pm UTC](https://discuss.elastic.co/t/logstash-input-codec-line-what-is-the-longest-length-accepted/122346/2 "2018-03-03T12:34:04Z")

</div>

I don't think there is one on logstash inputs, well besides the amount of memory you have in the JVM. And anyway your using the line codec so as soon as there is a \n it will create a new event.

Also Logstash inputs do not "Parse" the data so it is probably not a parse error on input.

you will have to provide more information like error message and maybe example data, along with the logstash config.

[https://www.elastic.co/guide/en/logstash/current/running-logstash-command-line.html](https://www.elastic.co/guide/en/logstash/current/running-logstash-command-line.html)

try adding debugging

```auto
--log.level LEVEL

```

---

<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 31, 2018, 12:34pm UTC](https://discuss.elastic.co/t/logstash-input-codec-line-what-is-the-longest-length-accepted/122346/3 "2018-03-31T12:34:34Z")

</div>

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