I need to get the max_content_length to limit the size of the bulk request I am sending to AWS Elasticsearch.
In my local installation of Elasticsearch I am able to do this using GET _cluster/settings?include_defaults API. I can see http.max_content_length in the response body.
But when I run the same API on AWS Elasticsearch, I cannot see http.max_content_length in the response body.
Is there something else I should do to get the max_content_length in AWS Elasticsearch? Should I use another API, or is there another way I can achieve what I need?
I should add that I want to do this programatically, i.e. extract the value of max_content_length from the json response.
Version I'm using is Elasticsearch 7.17.
I just need to read the max_content_length and will not be updating it.
Hi Stephen, thanks for the response. I was referring to AWS Opensearch Service.
just to make clear, we're using Elasticsearch 7.17 there and not the opensearch implementation.
I'm quite new to this, is this different from AWS Opensearch service?
I don't have access to the AWS dashboard, but I have gotten a response from the same endpoint connecting to elasticsearch endpoint on AWS and it does not have the max_content_length.
Would you know if there are certain settings on cloud that I need so I can make the max_content_length visible?
OpenSearch/OpenDistro are AWS run products and differ from the original Elasticsearch and Kibana products that Elastic builds and maintains. You may need to contact them directly for further assistance.
(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns )
Apologies I am still not clear
Either you are using Elasticsearch or OpenSearch they are not the same they are completely mutually exclusive , they do not run together.
There is no Elasticsearch 7.17 running on OpenSearch.
Ok that is a fork of Elasticsearch so you will need to visit the OpenSearch forum that is that last version that was "close" but it is still fork with significant difference so the APIs and responses may be different so to visit their form and ask questions.
We're happy to help you here if you're using Elasticsearch!!!
I can verify on my local Elasticsearch 7.10 installation that it does return that setting
It does not on AWS Opensearch though-- this is the issue I was hoping to find an answer to...
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.