# While indexing a document into elasticsearch, I am getting " "message": "Payload content length greater than maximum allowed: 1048576"

**URL:** <https://discuss.elastic.co/t/while-indexing-a-document-into-elasticsearch-i-am-getting-message-payload-content-length-greater-than-maximum-allowed-1048576/122758>\
**Category:** Kibana\
**Created:** [March 6, 2018, 5:40pm UTC](https://discuss.elastic.co/t/while-indexing-a-document-into-elasticsearch-i-am-getting-message-payload-content-length-greater-than-maximum-allowed-1048576/122758 "2018-03-06T17:40:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason\_smith](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@jason\_smith](https://discuss.elastic.co/u/jason_smith)\
**Post date:** [March 6, 2018, 5:40pm UTC](https://discuss.elastic.co/t/while-indexing-a-document-into-elasticsearch-i-am-getting-message-payload-content-length-greater-than-maximum-allowed-1048576/122758/1 "2018-03-06T17:40:33Z")

</div>

Hello folks,

Newbie to ELK.

I have downloaded shakespeare.json file from [elastic.co](http://elastic.co) site to practice Queries from Kibana console. when I try to index the JSON document using the following request, I get the following error.

```
         {
                "statusCode": 400,
                "error": "Bad Request",
                "message": "Payload content length greater than maximum allowed: 1048576"
        }

```

Any suggestions please?  
Thank You

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [March 7, 2018, 4:03pm UTC](https://discuss.elastic.co/t/while-indexing-a-document-into-elasticsearch-i-am-getting-message-payload-content-length-greater-than-maximum-allowed-1048576/122758/2 "2018-03-07T16:03:24Z")

</div>

Kibana has a configured upload limitation of 1mb by default. You can bump it up in kibana.yml by setting `server.maxPayloadBytes: _some_number > 1048576`

---

<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 4, 2018, 4:03pm UTC](https://discuss.elastic.co/t/while-indexing-a-document-into-elasticsearch-i-am-getting-message-payload-content-length-greater-than-maximum-allowed-1048576/122758/3 "2018-04-04T16:03:47Z")

</div>

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