Hello Wazuh team!
First of all, thank you for a great tool.
I have Wazuh 4.8 installed with 2 indexer nodes. I try to reduce index replicas from 1 to 0, because replica indexes take up a lot of disc space (screenshot 1).
I configured wazuh-template.json (screenshot 2). And if i execute:
curl "https://<INDEXER_IP_ADDRESS>:9200/_template/wazuh-custom?pretty&filter_path=wazuh-custom.settings" -k -u <INDEXER_USERNAME>:<INDEXER_PASSWORD>
It looks fine (screenshot 3).
Also i tried to execute this:
curl -k -u "<INDEXER_USERNAME>:<INDEXER_PASSWORD>" -XPUT "https://<INDEXER_IP_ADDRESS>:9200/wazuh-alerts-" -H 'Content-Type: application/json' -d'
{
"settings": {
"index": {
"number_of_replicas": 0
}
}
}'
But I got followed error (screenshot 4).
You can see from screenshots 2 and 3 that it looks like everything is set up correctly. But on the screenshot 1 you can see that new indexes are still created with 1 replica.
Could you please help me? How can i reduce the number of replicas?
Thank you.