Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [2122]/[2000] maximum shards open

How can I solve this problem?

[2020-12-04T10:10:41,540][WARN ][logstash.outputs.elasticsearch][main] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>"e45d58acd2b072154d7ac57ceb05491db7286944", :_index=>"pr-sim-2020.12.04", :routing=>nil, :_type=>"_doc"}, #LogStash::Event:0x6f1ef2c2], :response=>{"index"=>{"_index"=>"pr-sim-2020.12.04", "_type"=>"_doc", "_id"=>"e45d58acd2b072154d7ac57ceb05491db7286944", "status"=>400, "error"=>{"type"=>"illegal_argument_exception", "reason"=>"Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [2122]/[2000] maximum shards open;"}}}}

You have too many shards on your nodes.

What is the output of:

GET /
GET /_cat/nodes?v
GET /_cat/health?v
GET /_cat/indices?v

If some outputs are too big, please share them on gist.github.com and link them here.

2 Likes

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