Thank you for using Wazuh. The best way to purge Elasticsearch indices is using the API. If you go to
Index Management in the Kibana interface you should be able to see the size of each one of your indices and also its date (first and second screenshots). You can remove the oldest ones based on the date or the heavier ones. In order to purge them, you can use the
DevTool option present in Kibana (third and fourth screenshot), running
DELETE <your index name>, or perform an API call:
curl -X DELETE "localhost:9200/<your index name>?pretty". You can check the
following link for further information. In the
DevTool option, once you have written the command you will have to press the green arrow on the right side in order to run it.
In order to keep a clean environment and remove old indices periodically, I recommend you establish a retention period in your environment, deleting periodically indices that are older than some period of time. I will leave here two links that you might find useful if you want to configure it:
Hope this was helpful. Let me know if you need anything else.
Yana.