Hi Bobby,
If your indexer is down, you won’t be able to run any curl commands from the Linux CLI either. In this situation, the first priority is to free enough disk space so the indexer service can start again.
If this is an all-in-one deploymentYou can either increase the storage or delete old logs, as well as remove agents that are no longer in use. This will immediately free some disk space and allow the indexer to start.
Once the indexer is running again, you can delete old indices through the API, adjust shard/replica settings, and configure ILM policies.
You can increase storage or delete old logs on the indexer node. In case this didn't resolve the issue,I recommend deleting old indices that are consuming most of the space.
To identify which indices are safe to delete, run this command on the indexer node:
sudo du -sh /var/lib/wazuh-indexer/nodes/0/indices/* | sort -hr | head -20
This shows the largest index directories.Then identify the index name inside each folder:
strings /var/lib/wazuh-indexer/nodes/0/indices/<hash>/_state/state* | grep -i index
(Replace <hash> with the directory name you found from the previous command.)
You will see output similar to:
index.creation_date: 1769144792736
index.number_of_replicas: 0
index.number_of_shards: 1
index.provided_name: <index-name>
If the index is old and safe to remove, delete it:
sudo rm -rf /var/lib/wazuh-indexer/nodes/0/indices/<hash>
Note: Be careful while performing these steps. Make sure you do not delete any important or actively used indices, as this can affect the indexer node.
After freeing space, try starting the indexer again. Once it comes up, to prevent the issue from happening again:
Review and adjust replicas and shard configurations: https://documentation.wazuh.com/current/user-manual/wazuh-indexer/wazuh-indexer-tuning.html
You can also follow this guide to recover old logs once the issue is resolved: https://wazuh.com/blog/recover-your-data-using-wazuh-alert-backups/
Set up Index Lifecycle Management (ILM) policies: https://wazuh.com/blog/wazuh-index-management
You can also configure snapshots to back up your indices to local or cloud storage: https://wazuh.com/blog/index-backup-management
If you plan to scale the cluster in the future, add indexer nodes: https://documentation.wazuh.com/current/user-manual/wazuh-indexer-cluster/add-wazuh-indexer-nodes.html