mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Changes for Elastic 8.14.1
This commit is contained in:
@@ -134,7 +134,7 @@ if [ ! -f $STATE_FILE_SUCCESS ]; then
|
|||||||
TEMPLATE=${i::-14}
|
TEMPLATE=${i::-14}
|
||||||
COMPONENT_PATTERN=${TEMPLATE:3}
|
COMPONENT_PATTERN=${TEMPLATE:3}
|
||||||
MATCH=$(echo "$TEMPLATE" | grep -E "^so-logs-|^so-metrics" | grep -vE "detections|osquery")
|
MATCH=$(echo "$TEMPLATE" | grep -E "^so-logs-|^so-metrics" | grep -vE "detections|osquery")
|
||||||
if [[ -n "$MATCH" && ! "$COMPONENT_LIST" =~ "$COMPONENT_PATTERN" ]]; then
|
if [[ -n "$MATCH" && ! "$COMPONENT_LIST" =~ "$COMPONENT_PATTERN" && ! "$COMPONENT_PATTERN" =~ logs-http_endpoint\.generic|logs-winlog\.winlog ]]; then
|
||||||
load_failures=$((load_failures+1))
|
load_failures=$((load_failures+1))
|
||||||
echo "Component template does not exist for $COMPONENT_PATTERN. The index template will not be loaded. Load failures: $load_failures"
|
echo "Component template does not exist for $COMPONENT_PATTERN. The index template will not be loaded. Load failures: $load_failures"
|
||||||
else
|
else
|
||||||
@@ -153,7 +153,7 @@ if [ ! -f $STATE_FILE_SUCCESS ]; then
|
|||||||
cd - >/dev/null
|
cd - >/dev/null
|
||||||
|
|
||||||
if [[ $load_failures -eq 0 ]]; then
|
if [[ $load_failures -eq 0 ]]; then
|
||||||
echo "All template loaded successfully"
|
echo "All templates loaded successfully"
|
||||||
touch $STATE_FILE_SUCCESS
|
touch $STATE_FILE_SUCCESS
|
||||||
else
|
else
|
||||||
echo "Encountered $load_failures templates that were unable to load, likely due to missing dependencies that will be available later; will retry on next highstate"
|
echo "Encountered $load_failures templates that were unable to load, likely due to missing dependencies that will be available later; will retry on next highstate"
|
||||||
|
|||||||
Reference in New Issue
Block a user