Hello Smirika,
Thank you for your swift response.
To change the index in wazuh-indexer, kindly follow the below steps:
- Stop indexing and perform flush: curl -X POST "https://<indexer_IP>:9200/_flush/synced" -u <username>:<password> -k
- Stop filebeat systemctl stop filebeat
- Stop wazuh-indexer: systemctl stop wazuh-indexer
- Move or copy your data to the new directories and change ownership.
# mv /var/lib/wazuh-indexer/ /<new_folder_lib>/
# mv /var/log/wazuh-indexer/ /<new folder_log>/
# chown wazuh-indexer:wazuh-indexer -R /<new_folder_lib>/
# chown wazuh-indexer:wazuh-indexer -R /<new folder_log>/
5. edit /etc/wazuh-indexer/opensearch.yml
6. Change path.data and path.logs to the new partitions
7. Restart the services
#systemctl daemon-reload
#systemctl enable wazuh-indexer
#systemctl start wazuh-indexer
#systemctl restart filebeat
Please let me know if this helps.
Regards,