Merge pull request #12161 from Security-Onion-Solutions/fix/kibana-restart

Check Kibana API not Web
This commit is contained in:
Josh Brower
2024-01-11 12:32:19 -05:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ do
done
# Restarting Kibana...
so-kibana-restart --force
so-kibana-restart
# Check to make sure that Kibana API is up & ready
RETURN_CODE=0

View File

@@ -38,7 +38,7 @@ import() {
sed -i "s/ENDGAMEHOST/{{ ENDGAMEHOST }}/g" "$ndjson_file"
fi
wait_for_web_response "http://localhost:5601/app/kibana" "Elastic" 300 "curl -K /opt/so/conf/elasticsearch/curl.config"
wait_for_web_response "http://localhost:5601/api/fleet/settings" "fleet" 300 "curl -K /opt/so/conf/elasticsearch/curl.config"
RETURN_CODE=$?
SESSIONCOOKIE=$(curl -K /opt/so/conf/elasticsearch/curl.config -c - -X GET http://localhost:5601/ | grep sid | awk '{print $7}')