Hi,
Thank you for using Wazuh.
Wazuh provides an easy way of importing and exporting objects such as Dashboards via WebGUI.
To migrate the visualizations and other saved objects from OpenDistro to Dashboard, you will need to go to Stack Management > Saved Objects > Export and then Stack Management > Saved Objects > Import.
With this functionality, you can import all objects within the file, which should include the visualizations and the associated index patterns, so it will work regardless of whether or not this was the installation from where the dashboards were originally exported.
You can also replicate this request using CURL which will return a json object. You can use this to generate a script.
Generate a curl bash script using the steps in the screenshot below;
Then change --data-raw to --data
With this script, you can modify the parameters to retrieve the data you need from the JSON response.
I hope this is helpful.
Regards,