Hi Kevin,
I think we have misunderstood each other, as a first step I just want to get these data: wazuh-statistics-*, wazuh-monitoring-* and wazuh-alerts-* to use 6 shards and 1 replica.
In the meantime, I noticed that there are also basic templates for these indexes, each with priority 0. And I notice that even if I create a template with a higher priority for the same indexes, the template with priority 0 always applies.
So as a last test I tried to change the template with priority 0 to 6 shard and 1 replica setting via API. But even after restarting these settings are not valid, I also tried deleting all indexes to recreate them, but they are still not created with the correct settings.
GET /_cat/templates
wazuh [wazuh-alerts-4.x-*, wazuh-archives-4.x-*] 0 1
wazuh-agent [wazuh-monitoring-*] 0
wazuh-statistics [wazuh-statistics-*] 0
wazuh-states-vulnerabilities-wazuh_cluster_template [wazuh-states-vulnerabilities-*] 1 []
tenant_template [.kibana_-*_*, .kibana_0*_*, .kibana_1*_*, .kibana_2*_*, .kibana_3*_*, .kibana_4*_*, .kibana_5*_*, .kibana_6*_*, .kibana_7*_*, .kibana_8*_*, .kibana_9*_*] 2147483647 []
GET /_template/wazuh-agent
{
"wazuh-agent": {
"order": 0,
"index_patterns": [
"wazuh-monitoring-*"
],
"settings": {
"index": {
"refresh_interval": "5s"
}
},
...
GET /_template/wazuh-statistics
{
"wazuh-statistics": {
"order": 0,
"index_patterns": [
"wazuh-statistics-*"
],
"settings": {
"index": {
"refresh_interval": "5s"
}
},
...