Thanks to elastic/kibana#10858, a new API for importing and exporting Beats dashboards is added.
The export API receives a list of dashboards ids to be exported into a single JSON file. The JSON file contains not only the dashboards, but also the visualizations, searches, and the index pattern (by default). This allows us to group all the dashboards (including visualizations and searches) of a module into a single JSON file, that makes it easier to import using the import API. The Beats are using the export API only to export the dashboards, including the dependencies, without the index pattern that is separately generated by each Beat.
The import API receives the JSON file to be imported.
Thinks that still need to be done (after the #4413 is merged):
Thanks to elastic/kibana#10858, a new API for importing and exporting Beats dashboards is added.
The export API receives a list of dashboards ids to be exported into a single JSON file. The JSON file contains not only the dashboards, but also the visualizations, searches, and the index pattern (by default). This allows us to group all the dashboards (including visualizations and searches) of a module into a single JSON file, that makes it easier to import using the import API. The Beats are using the export API only to export the dashboards, including the dependencies, without the index pattern that is separately generated by each Beat.
The import API receives the JSON file to be imported.
Thinks that still need to be done (after the #4413 is merged):
es_loader_testto test with an older of version of Elasticsearchexport dashboardscommand #4725module.ymlfor all the modules, not only for those that contain more than one dashboard