Hello,
I'm running ELK 7.4 and have been getting this error in Logstash logs for basically every event that's being processed:
[2020-07-15T15:24:06,789][WARN ][logstash.outputs.elasticsearch][enm] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"ssoinstr-2020.29", :_type=>"_doc", :routing=>nil}, #<LogStash::Event:0x111c340c>], :response=>{"index"=>{"_index"=>"ssoinstr-2020.29", "_type"=>"_doc", "_id"=>nil, "status"=>400, "error"=>{"type"=>"validation_exception", "reason"=>"Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [999]/[1000] maximum shards open;"}}}}
Before, I had a total of ~5000 shards for my 7 node cluster (1 replica per index). Despite the error in the Logstash logs, I could still see the data being indexed via Kibana. But I wanted to get rid of the recurring log errors anyways so I followed some tips online to lower the number of shards
After re-indexing my data, the number of shards for my cluster decreased to ~850. I confirmed the number of shards using:
GET _cluster/stats?filter_path=indices.shards.total
I check the logs and was still getting the error. I restarted the Logstash instances but continued to get the same errors (errors were still saying I had 999 open shards).
As a last ditch effort, I increased the number of max open shards to 2000 using the API, but continued to get the error.
Does anyone have any experience with this? While the error doesn't actually seem to be affecting performance of the cluster, it's very annoying and clutters the log when I'm trying to troubleshoot.
Thank you!!