How to remove indexes in wazuh/elastichsearch for alerts

List of indexes:
curl -u <username>:<password> -XGET “https://10.134.11.6:9200/_cat/indices?v” -k

delete indexes:
curl -u <username>:<password> -XDELETE https://10.134.11.6:9200/wazuh-alerts-4.x-2023* -k

 

here to delete the log files : ls /var/ossec/logs/alerts/

Leave a Reply