Hello!
We currently have a Wazuh 4.5 running with Elasticsearch stack 7.17. The Wazuh Manager runs on 1 server (name: wazuh-manager) and the Elasticsearch runs on a second server (name: wazuh-search).
We want to upgrade to the full Wazuh 4.7 stack and migrate from Elasticsearch to Opensearch at the same time and on a SINGLE HOST because volume is not large enough to warrant for 2 hosts at this time. There seem to be different ways for the migration but there seem to be some caveats that we encountered.
Here are a few plans I had:
- In place upgrade of Elasticsearch to Opensearch: This one did not work and we reverted back. There seemed to be some issues with Elasticsearch not being configured for SSL/TLS yet.
- Install Wazuh 4.7 on new server (name: wazuh-server) and use remote reindex API to import the data. It works but I cannot see events in the dashboard because the filter name for manager.name is fixed to wazuh-manager (the old manager name).
- Install Wazuh 4.7 on new server (name: wazuh-server) and reingest alerts.json files (I have 3 years worth of archives) on the new manager using the recovery.py script in the documentation. It works but I cannot see events in the dashboard because the filter name for manager.name is fixed to wazuh-manager (the old manager name).
From attemps 2 and 3, I know the old data is in Opensearch as I can see them but they always use the old manager name so imported data is not seen from the Wazuh Dashboard.
My next attempt would be to change the Wazuh configuration on the new server so that the manager has the same name as the old server as to ensure that imported data is seen on the dashboard. Would that make sense?
Do you have any ideas?
Regards,
Sylvain