Hi Brenno,
You can migrate those indices by taking a snapshot and restoring from the snapshot.
Check these documents for reference:
https://documentation.wazuh.com/current/user-manual/wazuh-indexer/migrating-wazuh-indices.html
https://docs.opensearch.org/latest/tuning-your-cluster/availability-and-recovery/snapshots/snapshot-restore/
Let us know if this works for you.