I have an Elasticsearch instance that has reached it's default max shards of 1000 and now I'm trying to increase that number using curl but am running into an issue with the -h content-type declaration.
I would try copying the command from Size your shards | Elasticsearch Guide [8.0] | Elastic and then pasting it directly into your console and seeing if that works. If it does, then just edit it and change to what you want.
However if you're exceeding this (soft) limit, then you may want to reevaluate your approach.
Thanks Mark I'll give this a try and unfortunately I'm constrained in this since my company is not willing to invest any budget for making this stack a proper enterprise level stack so I'm forced to use the basic license on 1 server for everything (Elasticsearch, Kibana, Logstash) for our entire enterprise and we are massively under provisioned here. I'm constantly having to apply band aids to keep the system up.
There is no verification that the passed in data is actual JSON or that the syntax is correct.
If you start the data with the letter @, the rest should be a file name to read the data from, or a single dash (-) if you want curl to read the data from stdin. Posting data from a file named 'foobar' would thus be done with --json@foobar and to instead read the data from stdin, use --json @-.
If this option is used more than once on the same command line, the additional data pieces will be concatenated to the previous before sending.
The headers this option sets can be overriden with --header as usual.
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.