Skip to content

Import/export dashboards via the Kibana API #4409

@monicasarbu

Description

@monicasarbu

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):

  • TLS config
  • Configure username/password for Kibana
  • Add make import-dashboards
  • Add make export-dashboards
  • fix test es_loader_test to test with an older of version of Elasticsearch
  • add system test in libbeat to load the dashboards in Kibana
  • export dashboards in the new format for the other Beats
  • redo mysql and golang dashboards to use time series visual builder
  • Filebeat auditd dashboard fails with an error (Fails to open the Filebeat auditd dashboard in Kibana #4595)
  • Update docs
  • Add export dashboards option to the Beat executable Add export dashboards command #4725
  • Create a module.yml for all the modules, not only for those that contain more than one dashboard

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions