Rahul Ranjan
Rahul Ranjan

Reputation: 205

how to solve Request Entity Too Large issue in elastic search?

We are trying to index using BulkRequest java RestHighclient 6.2.3. Elastic search is hosted on aws.

We are getting following issue while indexing:

URI [/_bulk?timeout=120s], status line [HTTP/1.1 413 Request Entity Too Large]
    {"Message":"Request size exceeded 104857600 bytes"}

How to resolve this in java RestHighClient jar?

Upvotes: 5

Views: 9281

Answers (1)

Saeed Hassanvand
Saeed Hassanvand

Reputation: 977

Based on documentation, the maximum size of an HTTP request body is 100mb (you can change it using the http.max_content_length setting).

Keep in mind that the Elasticseach instance hosted on AWS also has a limitation on the HTTP request payload. You can see the details here.

Upvotes: 2

Related Questions