mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-09 02:32:46 +01:00
13 lines
708 B
Plaintext
Executable File
13 lines
708 B
Plaintext
Executable File
. /usr/sbin/so-common
|
|
|
|
wait_for_web_response "http://localhost:5601/app/kibana" "Elastic"
|
|
## This hackery will be removed if using Elastic Auth ##
|
|
|
|
# Let's snag a cookie from Kibana
|
|
THECOOKIE=$(curl -c - -X GET http://localhost:5601/ | grep sid | awk '{print $7}')
|
|
|
|
# Disable certain Features from showing up in the Kibana UI
|
|
echo
|
|
echo "Setting up default Space:"
|
|
curl -b "sid=$THECOOKIE" -L -X PUT "localhost:5601/api/spaces/space/default" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d' {"id":"default","name":"Default","disabledFeatures":["ml","enterpriseSearch","siem","logs","infrastructure","apm","uptime","monitoring","stackAlerts","actions","fleet"]} ' >> /opt/so/log/kibana/misc.log
|
|
echo |