Merge pull request #13736 from Security-Onion-Solutions/fix/elastic_template_retry

Retry after 1 second
This commit is contained in:
weslambert
2024-09-25 13:08:36 -04:00
committed by GitHub

View File

@@ -33,7 +33,7 @@ load_template() {
file=$2 file=$2
echo "Loading template file $i" echo "Loading template file $i"
if ! retry 3 5 "so-elasticsearch-query $uri -d@$file -XPUT" "{\"acknowledged\":true}"; then if ! retry 3 1 "so-elasticsearch-query $uri -d@$file -XPUT" "{\"acknowledged\":true}"; then
if [[ $should_exit_on_failure -eq 1 ]]; then if [[ $should_exit_on_failure -eq 1 ]]; then
fail "Could not load template file: $file" fail "Could not load template file: $file"
else else