diff --git a/salt/common/tools/sbin/so-kibana-config-export b/salt/common/tools/sbin/so-kibana-config-export new file mode 100644 index 000000000..34a522942 --- /dev/null +++ b/salt/common/tools/sbin/so-kibana-config-export @@ -0,0 +1,6 @@ + +#!/bin/bash +KIBANA_HOST=10.66.166.141 +KSO_PORT=5601 +OUTFILE="saved_objects.json" +curl -s -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -XPOST $KIBANA_HOST:$KSO_PORT/api/saved_objects/_export -d '{ "type": "index-pattern", "type": "config", "type": "dashboard", "type": "query", "type": "search", "type": "url", "type": "visualization" }' -o $OUTFILE