# Elastic cloud request entity max length

**URL:** <https://discuss.elastic.co/t/elastic-cloud-request-entity-max-length/370845>\
**Category:** Elasticsearch\
**Created:** [November 20, 2024, 3:40pm UTC](https://discuss.elastic.co/t/elastic-cloud-request-entity-max-length/370845 "2024-11-20T15:40:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dealomuss](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dealomuss/32/138004_2.png) [@dealomuss](https://discuss.elastic.co/u/dealomuss)\
**Post date:** [November 20, 2024, 3:40pm UTC](https://discuss.elastic.co/t/elastic-cloud-request-entity-max-length/370845/1 "2024-11-20T15:40:35Z")

</div>

Hello,

i have an elastic cloud cluster and im facing a request entity payload that seems to be too large

the error received on the console is :

```auto
{
  "statusCode": 413,
  "error": "Request Entity Too Large",
  "message": "Payload content length greater than maximum allowed: 1048576"
}

```

So the limit seems to be around 1Mbits or 1Mbytes , the unit is not given here by the way

so i checked the cluster maximum limits with a request

`GET /_clusters/settings?include_defaults`

i've seen many topics complaining about http.max\_content\_length param so i've checked this one it says :

` "max_content_length": "100mb",`

as far as i understand this is the maximum size of an uploaded document in mbits wich gives around 12Mbytes

but this number has nothing to do with the previous one sent by the error which is only 1M not 100M

plus it seems that for cloud instance it is not possible to increase the http.max\_content\_length anyway

my question is the following

i'm reaching the limit of the request payload itself when querying an index, not the limit when indexing something

1. but where is this limit ?
2. what is the parameter name ?
3. is it possible to increase it for cloud instance customers ?

as the numbers are totally different my guess is that the interesting parameter has nothing to do with http.max\_content\_length because 100mbit would have done the job.

My payload size copy pasted to a file on my computer is 1.1MBytes so around 9.2Mbits so i should not have reached the limit anyway

thanks for any help on this

---

<div class="post-metadata">

**Author:** ![jessgarson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jessgarson/32/129841_2.png) [@jessgarson](https://discuss.elastic.co/u/jessgarson)\
**Post date:** [November 20, 2024, 6:39pm UTC](https://discuss.elastic.co/t/elastic-cloud-request-entity-max-length/370845/2 "2024-11-20T18:39:27Z")

</div>

Thanks for reaching out, @dealomuss.

It seems from this [older forum post](https://discuss.elastic.co/t/while-indexing-a-document-into-elasticsearch-i-am-getting-message-payload-content-length-greater-than-maximum-allowed-1048576/122758) you may be able to make adjustments to this, but I'm not sure if this will work on cloud. [This guide](https://www.elastic.co/guide/en/cloud/current/ec-manage-kibana-settings.html) may also be helpful too.

---

<div class="post-metadata">

**Author:** ![dealomuss](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dealomuss/32/138004_2.png) [@dealomuss](https://discuss.elastic.co/u/dealomuss)\
**Post date:** [November 21, 2024, 8:54am UTC](https://discuss.elastic.co/t/elastic-cloud-request-entity-max-length/370845/3 "2024-11-21T08:54:52Z")

</div>

hello jess,

thank you so much for taking the time to answer and so quickly

the first link is dealing about index document size wich did not help

BUT the second one put me on the right track because of the exact same value for the limitation

so to the limitation concernning the request entity payload ( wich is different from the size of document to be indexed ) is indeed a Kibana limitation not Elastic

i've upgraded the value in elastic cloud parameter it worked perfectly !

i had to deal with max index term count after that but it was just an index setting to adjust

if anyone else is facing this problem and dealing with huge request payloads here are the two things to move

in your cloud instance kibana's user setting yml

`server.maxPayload: 104857600`

on your index for increasing term counts

```auto
PUT /myindexname/_settings
{
    "index" : {
        "max_terms_count" : 1000000  
     }
}

```

thank you for your help !

---

<div class="post-metadata">

**Author:** ![jessgarson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jessgarson/32/129841_2.png) [@jessgarson](https://discuss.elastic.co/u/jessgarson)\
**Post date:** [November 21, 2024, 7:47pm UTC](https://discuss.elastic.co/t/elastic-cloud-request-entity-max-length/370845/4 "2024-11-21T19:47:18Z")

</div>

Thanks so much for this detailed follow up, @dealomuss.
