I tried coping 2 months of data from one Wazuh/ELK standalone server to a different ELK-Wazuh stack.
I copied all the indices from /var/lib/elasticsearch/nodes/0/indices/ to the same directory in the new server which has ELK-Wazuh installed from 2 days ago. There may have been some overlap where both systems where running 2 days ago for several hours. I first received an elasticsearch error and it would not start. I found that the directory ownership of all the copied files needed to be changed to elasticsearch:elasticsearch. This then allowed elasticsearch to start. I also saw that my api connection was for the old server. So I removed it and added the new api info back in and it connects again.
On the Discover page I can select an expanded data range and I can see all the data from back 2 months ago. However in the Wazuh app there is only new data from tonight after the migration.
Interesting, all the data is displayed on the OSSEC Dashboard page. The timelion also shows all 2 months of data.
For the Wazuh App, on the Overview page, the Agent Status shows all the data, but nothing else on that page does. Only for tonight since the migration. Also the File Integrity shows nothing, and Policy Monitoring and PCI show only data from tonight.
Do you have a way I can fix this last part so it shows all old and new data?
Regards,
Robert