mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-03 21:43:15 +00:00
Remove KIBANA_IP variable
This commit is contained in:
@@ -29,13 +29,7 @@ if [ "$KIBANA_INDEX" != "" ]; then
|
|||||||
echo "kibana.index: $KIBANA_INDEX" >> /usr/share/kibana/config/kibana.yml
|
echo "kibana.index: $KIBANA_INDEX" >> /usr/share/kibana/config/kibana.yml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$KIBANA_IP" != "" ]; then
|
while [[ "$(curl -XGET -I -s -o /dev/null -w '%{http_code}' https://127.0.0.1/login)" != "200" ]]; do
|
||||||
kibana_url="$KIBANA_IP"
|
|
||||||
else
|
|
||||||
kibana_url="kibana"
|
|
||||||
fi
|
|
||||||
|
|
||||||
while [[ "$(curl -XGET -I -s -o /dev/null -w '%{http_code}' $kibana_url:5601/login)" != "200" ]]; do
|
|
||||||
echo "Waiting for Kibana API. Sleeping 5 seconds"
|
echo "Waiting for Kibana API. Sleeping 5 seconds"
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
@@ -55,12 +49,12 @@ EOF
|
|||||||
|
|
||||||
sleep 5
|
sleep 5
|
||||||
# Add the wazuh alerts index as default.
|
# Add the wazuh alerts index as default.
|
||||||
curl ${auth} -POST $kibana_url:5601/api/kibana/settings -H "Content-Type: application/json" -H "kbn-xsrf: true" -d@${default_index}
|
curl ${auth} -POST https://127.0.0.1/api/kibana/settings -H "Content-Type: application/json" -H "kbn-xsrf: true" -d@${default_index}
|
||||||
rm -f ${default_index}
|
rm -f ${default_index}
|
||||||
|
|
||||||
sleep 5
|
sleep 5
|
||||||
# Configuring Kibana TimePicker.
|
# Configuring Kibana TimePicker.
|
||||||
curl ${auth} -POST "http://$kibana_url:5601/api/kibana/settings" -H "Content-Type: application/json" -H "kbn-xsrf: true" -d \
|
curl ${auth} -POST "https://127.0.0.1/api/kibana/settings" -H "Content-Type: application/json" -H "kbn-xsrf: true" -d \
|
||||||
'{"changes":{"timepicker:timeDefaults":"{\n \"from\": \"now-12h\",\n \"to\": \"now\",\n \"mode\": \"quick\"}"}}'
|
'{"changes":{"timepicker:timeDefaults":"{\n \"from\": \"now-12h\",\n \"to\": \"now\",\n \"mode\": \"quick\"}"}}'
|
||||||
|
|
||||||
echo "End settings"
|
echo "End settings"
|
||||||
|
|||||||
Reference in New Issue
Block a user