How to import kibana dashboard from commandline

As of now I have to manually import the kibana dashboard. i am looking at an option to automate the process via script

You can get complete Kibana metadata from command line using cURL. Only thing you need to have is access to Elasticsearch.

Elasticsearch stores complete Kibana metadata in .kibana (default and if you want it to store in new index then you can configure it in kibana.yml). Using Elasticsearch GET API you can retrieve index-patterns, visualizations, dashboards, kibana settings etc.

Examples to get Kibana visualizations and dashboards:

curl -XGET "http://xxx.xxx.xxx.xxx:9200/.kibana/dashboard/dashboard_name?pretty=1"
curl -XGET "http://xxx.xxx.xxx.xxx:9200/.kibana/visualization/visualization_name?pretty=1"
Hope this Helps!

Cheers
Rashmi

Thanks that worked

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