# Max content length issue

**URL:** <https://discuss.elastic.co/t/max-content-length-issue/125016>\
**Category:** Elasticsearch\
**Created:** [March 21, 2018, 3:18pm UTC](https://discuss.elastic.co/t/max-content-length-issue/125016 "2018-03-21T15:18:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramon\_Zaro](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Ramon\_Zaro](https://discuss.elastic.co/u/Ramon_Zaro)\
**Post date:** [March 21, 2018, 3:18pm UTC](https://discuss.elastic.co/t/max-content-length-issue/125016/1 "2018-03-21T15:18:05Z")

</div>

Hi, I am getting http 413 error on trying to push large documents to ES 5.5.

I tried setting http.max\_content\_length : 500mb in ES YML file but I am still getting the same error saying '... entity content too long for configured buffer limit (104857600)'.

what am I missing & how do I get ES to accept larger files ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 21, 2018, 4:04pm UTC](https://discuss.elastic.co/t/max-content-length-issue/125016/2 "2018-03-21T16:04:28Z")

</div>

I'd say first: don't do it. Don't store blobs in elasticsearch/Lucene.

If you want to do it, look at `http.max_content_length` in  
[https://www.elastic.co/guide/en/elasticsearch/reference/6.2/modules-http.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/modules-http.html)

---

<div class="post-metadata">

**Author:** ![Ramon\_Zaro](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Ramon\_Zaro](https://discuss.elastic.co/u/Ramon_Zaro)\
**Post date:** [March 21, 2018, 4:28pm UTC](https://discuss.elastic.co/t/max-content-length-issue/125016/3 "2018-03-21T16:28:08Z")

</div>

well, as I am doing full text search using fs2.3, I really have no option. they are few and far between but I can't really avoid it altogether without hampering the usability factor for my clients.

I did go over this link previously but I am not sure where I am supposed to set this ? as I wrote above, I did set http.max\_content\_length by editing the yml file but that apparently didn't work.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 21, 2018, 5:59pm UTC](https://discuss.elastic.co/t/max-content-length-issue/125016/4 "2018-03-21T17:59:41Z")

</div>

> fs2.3

You mean? FSCrawler 2.3?

> I really have no option.

Normally if you don't define the `store_source` settings, the size of a document should not be that large. Did you activate that?

> I did set http.max\_content\_length by editing the yml file but that apparently didn't work.

Did you restart the node?

---

<div class="post-metadata">

**Author:** ![Ramon\_Zaro](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Ramon\_Zaro](https://discuss.elastic.co/u/Ramon_Zaro)\
**Post date:** [March 24, 2018, 5:19pm UTC](https://discuss.elastic.co/t/max-content-length-issue/125016/5 "2018-03-24T17:19:06Z")

</div>

> Did you restart the node?

Stupid me, that's must be it.

I will move the rest of the fscrawler related discussion to a more relevant thread on github, viz. [Issues with remove deleted · Issue #531 · dadoonet/fscrawler · GitHub](https://github.com/dadoonet/fscrawler/issues/531) .  
thx.

---

<div class="post-metadata">

**Author:** ![Ramon\_Zaro](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Ramon\_Zaro](https://discuss.elastic.co/u/Ramon_Zaro)\
**Post date:** [March 27, 2018, 3:33am UTC](https://discuss.elastic.co/t/max-content-length-issue/125016/6 "2018-03-27T03:33:48Z")

</div>

> Did you restart the node?

Okay, I did that, I am still getting the max content length error " entity content is too long [2.........] for the configured buffer limit [104857600] "

I have set http.max\_content\_length : 999mb.

---

<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:** [April 24, 2018, 3:33am UTC](https://discuss.elastic.co/t/max-content-length-issue/125016/7 "2018-04-24T03:33:48Z")

</div>

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