Hi,
Did you follow the
Wazuh index management blog post to configure ILM and manage your Wazuh indices over time? (It was made for 3.x version, but it should work properly by performing some minor changes)
However, it is odd that the indices are deleted 6 days after its creation with that policy ¿Which indices are you trying to manage? Could you check if the desired policy is applied to that indices?
You can use the
explain lifecycle API in order to debug the problem and check the current lifecycle status for one or more indices.
Also, could you perform the following request in your elasticsearch server to get some details about the current cluster health?:
(you may need to change http to https or add your Elasticsearch credentials)
Please, keep us updated to debug the issue.
Best regards,
Mayte Ariza.