mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #12161 from Security-Onion-Solutions/fix/kibana-restart
Check Kibana API not Web
This commit is contained in:
@@ -38,7 +38,7 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Restarting Kibana...
|
# Restarting Kibana...
|
||||||
so-kibana-restart --force
|
so-kibana-restart
|
||||||
|
|
||||||
# Check to make sure that Kibana API is up & ready
|
# Check to make sure that Kibana API is up & ready
|
||||||
RETURN_CODE=0
|
RETURN_CODE=0
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ import() {
|
|||||||
sed -i "s/ENDGAMEHOST/{{ ENDGAMEHOST }}/g" "$ndjson_file"
|
sed -i "s/ENDGAMEHOST/{{ ENDGAMEHOST }}/g" "$ndjson_file"
|
||||||
fi
|
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=$?
|
RETURN_CODE=$?
|
||||||
|
|
||||||
SESSIONCOOKIE=$(curl -K /opt/so/conf/elasticsearch/curl.config -c - -X GET http://localhost:5601/ | grep sid | awk '{print $7}')
|
SESSIONCOOKIE=$(curl -K /opt/so/conf/elasticsearch/curl.config -c - -X GET http://localhost:5601/ | grep sid | awk '{print $7}')
|
||||||
|
|||||||
Reference in New Issue
Block a user