# Search Error The content length (897957165) is bigger than the maximum allowed string (536870888)

**URL:** <https://discuss.elastic.co/t/search-error-the-content-length-897957165-is-bigger-than-the-maximum-allowed-string-536870888/285100>\
**Category:** Kibana\
**Created:** [September 24, 2021, 4:35pm UTC](https://discuss.elastic.co/t/search-error-the-content-length-897957165-is-bigger-than-the-maximum-allowed-string-536870888/285100 "2021-09-24T16:35:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikas1389](https://avatars.discourse-cdn.com/v4/letter/v/da6949/32.png) [@vikas1389](https://discuss.elastic.co/u/vikas1389)\
**Post date:** [September 24, 2021, 4:35pm UTC](https://discuss.elastic.co/t/search-error-the-content-length-897957165-is-bigger-than-the-maximum-allowed-string-536870888/285100/1 "2021-09-24T16:35:49Z")

</div>

While filtering through logs we getting error: where it mentions content length is bigger. Where is maximum allowed string (536870888) is set- any suggestions to fix this error.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/6/1663b5dc06e41aab3c117b41edcfde81632546bb.png)

---

<div class="post-metadata">

**Author:** ![vikas1389](https://avatars.discourse-cdn.com/v4/letter/v/da6949/32.png) [@vikas1389](https://discuss.elastic.co/u/vikas1389)\
**Post date:** [September 24, 2021, 7:26pm UTC](https://discuss.elastic.co/t/search-error-the-content-length-897957165-is-bigger-than-the-maximum-allowed-string-536870888/285100/2 "2021-09-24T19:26:42Z")

</div>

Sounds like [https://github.com/nodejs/node/issues/33960](https://github.com/nodejs/node/issues/33960) its a change at nodejs / v8 - any recommendation on how to stay withing limits of new size 536870888

---

<div class="post-metadata">

**Author:** ![Ivan44785372](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ivan44785372/32/38610_2.png) [@Ivan44785372](https://discuss.elastic.co/u/Ivan44785372)\
**Post date:** [October 18, 2021, 12:57pm UTC](https://discuss.elastic.co/t/search-error-the-content-length-897957165-is-bigger-than-the-maximum-allowed-string-536870888/285100/3 "2021-10-18T12:57:04Z")

</div>

I have the same issue, have you fixed it ?

---

<div class="post-metadata">

**Author:** ![vikas1389](https://avatars.discourse-cdn.com/v4/letter/v/da6949/32.png) [@vikas1389](https://discuss.elastic.co/u/vikas1389)\
**Post date:** [October 18, 2021, 2:31pm UTC](https://discuss.elastic.co/t/search-error-the-content-length-897957165-is-bigger-than-the-maximum-allowed-string-536870888/285100/4 "2021-10-18T14:31:39Z")

</div>

We end up truncating large log message to reasonable value so we dont get this error. have used this filter- [Truncate filter plugin | Logstash Reference [6.8] | Elastic](https://www.elastic.co/guide/en/logstash/6.8/plugins-filters-truncate.html)

---

<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:** [November 15, 2021, 2:31pm UTC](https://discuss.elastic.co/t/search-error-the-content-length-897957165-is-bigger-than-the-maximum-allowed-string-536870888/285100/5 "2021-11-15T14:31:44Z")

</div>

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