We are using ElasticSearch and Kibana within a kubernetes environment, so periodically containers will be deleted, and recreated. I have been trying to find a way to create all the index-patterns, visualizations, and Dashboards, from API calls which we can run during the creation process of the containers.
I'm having trouble finding the way of doing this, even when using the documentation. For example, I have created 2 indexs, and a dashboard with 1 visualization, but.....
curl -X GET "http://172.17.0.2:9200/api/saved_objects/_export"
-H 'kbn-xsrf: true'
-H 'Content-Type: application/json'
"type": "[visualization, dashboard, search, index-pattern]"
Can anyone give me some help with the best process for doing this.
ps: I'm using the docker container, version 7.1.1