Can we create kibana dashboards as code?

Is there a way we can automate kibana dashboard creation? It would be great if we could create via version controlled source for better tracking and easy maintenance.
Thanks

hi @senyam08 ,

this is possible through the Saved Objects API. It is used by the Elastic Terraform Provider to manage Kibana resources. However, this API is deprecated, and will likely not be supported indefinitely.

There are plans to create a dedicated API layer for Dashboards: [Dashboards] Dedicated HTTP API for managing Dashboards · Issue #174497 · elastic/kibana · GitHub .

That github issue also includes details on the current approaches. Please leave any comment or feedback you may have there as well.

Thx!

1 Like