load kibana configs during setup

This commit is contained in:
m0duspwnens
2021-10-18 14:30:47 -04:00
parent 76097476d3
commit 1b2268dfe5
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ update() {
wait_for_web_response "http://localhost:5601/app/kibana" "Elastic" 300 "{{ ELASTICCURL }}"
IFS=$'\r\n' GLOBIGNORE='*' command eval 'LINES=($(cat $1))'
for i in "${LINES[@]}"; do
{{ ELASTICCURL }} -X PUT "localhost:5601/api/saved_objects/config/securityonion" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d " $i "
{{ ELASTICCURL }} -X PUT "localhost:5601/api/saved_objects/config/7.13.4" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d " $i "
done
}