start_curielogger tweaks
#!/bin/bash
-/bin/curielogger
-
ES_PATTERN_PATH="api/saved_objects/index-pattern/curiefense"
ES_INDEX_NAME=${CURIEFENSE_ES_INDEX_NAME:-curieaccesslog}
CURL="curl --silent --write-out %{http_code}\n -H Content-Type:application/json --output /dev/null"
wait_for_es () {
- if $CURL -X GET "${ELASTICSEARCH_URL}_cluster/health?wait_for_status=yellow&timeout=60s"|grep -qv 200; then
+ if $CURL -X GET "${ELASTICSEARCH_URL}_cluster/health?wait_for_status=yellow&timeout=10s"|grep -qv 200; then
sleep 5
wait_for_es
fi
@@ -78,3 +76,4 @@ if [ -n "$CURIELOGGER_INITIALIZE_KIBANA_INDEX" ]; then
create_kibana_index_pattern
fi
+/bin/curielogger
