In Kibana 7.0, the /api/kibana/dashboards/import endpoint was deprecated and replaced with the new general Saved Objects import API.
Today Beats still uses the legacy API here:
|
var importAPI = "/api/kibana/dashboards/import" |
The legacy API will be removed in Kibana 8.0 and all Beats from 7.last+ will need to be using the new API. If you have any questions, feel free to reach out to @elastic/kibana-platform for assistance.
In order to implement this change we need to:
- Change the setup command to use the new API
- Convert all the dashboards in the beats codebase from the current format to saved objects.
- Change the module to packages importer so that it does not use the new code.
Regarding (2) a similar conversion is currently performed as part of the code that creates packages from modules so we could use some of that code, removing the transformations that are needed as part of the transition from modules to packages.
For (3) we would need to change the current migration to just performing the transformations in the saved object format.
TODO
In Kibana 7.0, the
/api/kibana/dashboards/importendpoint was deprecated and replaced with the new general Saved Objects import API.Today Beats still uses the legacy API here:
beats/libbeat/dashboards/kibana_loader.go
Line 36 in 0b12bb4
The legacy API will be removed in Kibana 8.0 and all Beats from 7.last+ will need to be using the new API. If you have any questions, feel free to reach out to @elastic/kibana-platform for assistance.
In order to implement this change we need to:
Regarding (2) a similar conversion is currently performed as part of the code that creates packages from modules so we could use some of that code, removing the transformations that are needed as part of the transition from modules to packages.
For (3) we would need to change the current migration to just performing the transformations in the saved object format.
TODO