Hello again,
I deleted the shard, tried creating a new one, and I get this error:
{
"took" : 125,
"timed_out" : false,
"total" : 1074327,
"updated" : 0,
"created" : 0,
"deleted" : 0,
"batches" : 1,
"version_conflicts" : 0,
"noops" : 0,
"retries" : {
"bulk" : 0,
"search" : 0
},
"throttled_millis" : 0,
"requests_per_second" : -1.0,
"throttled_until_millis" : 0,
"failures" : [
{
"index" : "wazuh-archives-4.x-2022.11.24-new",
"type" : "_doc",
"id" : "aj9rqoQBsRQfJlr-7SXW",
"cause" : {
"type" : "validation_exception",
"reason" : "Validation Failed: 1: this action would add [3] total shards, but this cluster currently has [1199]/[1200] maximum shards open;"
},
"status" : 400
},
why does it try to create the index with 3 shards? I specified "index.number_of_shards": "1" in /etc/filebeat/wazuh-template.json. And the purpose of my reindexing is to decrease the number of shards per index from 3 to 1. So why when I try to reindex it creates 3 shards?
BR,
Cristian