How can I automate version control Kibana Saved Object?


I am very new to Kibana. I create Dashboard using Kibana and found that I can save it by using Saved Object. I was thinking I can version control these json file in my Azure DevOps repo.

Instead of export->saving it to repo manually, I was wondering if there is any way to automate it on command or using API, so when new Dashboard is created(saved or updated), I can run the jar or command line, then it grabs new Saved Object from dashboard to local or my repo. Is this possible currently?

Hi @jhagen92,

AFAIK, it is not possible to hook into saved object created / updated events.
But there is a saved objects api you could use and you can hack a backup of your dashboards by time-interval.

Also since Kibana saved object are stored in Elasticsearch similar to any other documents, you could look into using snapshots for backups.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.