Hello Henry,
The indices are stored in
the /var/lib/wazuh-indexer directory and might include other information sent to the indexer.
To change the
logs and
data storage path for the
wazuh-indexer, you can modify this in the
/etc/wazuh-indexer/opensearch.yml file and move the current content to the new path with proper ownership and access.
You need to modify these two lines in the
/etc/wazuh-indexer/opensearch.yml
file to point to your new location:
path.data: /var/lib/wazuh-indexer
path.logs: /var/log/wazuh-indexer
Then you need to move the current data and log directories to the new location and provide proper ownership there:
# mv /var/lib/wazuh-indexer/ /new/data/directory/
# mv /var/log/wazuh-indexer/ /new/log/directory/
# chown wazuh-indexer:wazuh-indexer -R /new/data/directory/
# chown wazuh-indexer:wazuh-indexer -R /new/log/directory/
Then, you need to restart the wazuh-indexer service to effect the changes.
You can also manage the indices by following the
Wazuh Index Management blog at the
Opendistro ISM section, it is not exactly the same as
OpenSearch (
Wazuh-indexer) but it is similar.
Hope you find this information helpful.