Hi again German, If by dashboards and visualizations you mean custom dashboards and visualizations that you have created with the Wazuh Dashboard and Visualize apps, they are stored within Wazuh indexer indices. If you intend to migrate Wazuh indexer to another machine, you would have to migrate the indices, for this you can do it through snapshots.
https://documentation.wazuh.com/current/user-manual/wazuh-indexer/migrating-wazuh-indices.html
Dashboards and visualizations, within Wazuh dashboard are types of saved objects, precisely in
this OpenSearch issue they group other issues related to the saved objects API. Apparently there is an API, but they still have work to do, so the behavior may not be as expected.
Here is
documentation for backing up Wazuh core components that you may be interested in if you are moving an installation. Keep in mind that the information provided in this link is a backup of configuration files, files from the installation of the central component itself are not included, nor are the data indexed in Wazuh indexer. The approach of the document is to backup the configuration files of the functional productive environment. In the case of migration, the core components are installed on the new environment/machine and the configuration files are restored.
I hope it helps you.