Skip to content

Commit

Permalink
Check Kibana API not Web
Browse files Browse the repository at this point in the history
  • Loading branch information
defensivedepth committed Jan 11, 2024
1 parent 59fe9a0 commit 03f1401
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion salt/elasticfleet/tools/sbin_jinja/so-elastic-fleet-setup
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion salt/kibana/tools/sbin_jinja/so-kibana-config-load
Original file line number Diff line number Diff line change
Expand Up @@ -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}')
Expand Down

0 comments on commit 03f1401

Please sign in to comment.