forked from wazuh/wazuh-docker
improve template check
This commit is contained in:
@@ -33,11 +33,12 @@ while [[ $strlen -eq 0 ]]
|
|||||||
do
|
do
|
||||||
template=$(curl $el_url:9200/_cat/templates/wazuh -s)
|
template=$(curl $el_url:9200/_cat/templates/wazuh -s)
|
||||||
strlen=${#template}
|
strlen=${#template}
|
||||||
|
>&2 echo "Wazuh alerts template not loaded - sleeping."
|
||||||
done
|
done
|
||||||
|
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
||||||
>&2 echo "Wazuh alerts template is load."
|
>&2 echo "Wazuh alerts template is loaded."
|
||||||
|
|
||||||
|
|
||||||
./wazuh_app_config.sh
|
./wazuh_app_config.sh
|
||||||
|
|||||||
@@ -36,11 +36,12 @@ while [[ $strlen -eq 0 ]]
|
|||||||
do
|
do
|
||||||
template=$(curl $el_url:9200/_cat/templates/wazuh -s)
|
template=$(curl $el_url:9200/_cat/templates/wazuh -s)
|
||||||
strlen=${#template}
|
strlen=${#template}
|
||||||
|
>&2 echo "Wazuh alerts template not loaded - sleeping."
|
||||||
done
|
done
|
||||||
|
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
||||||
>&2 echo "Wazuh alerts template is load."
|
>&2 echo "Wazuh alerts template is loaded."
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# Customize logstash output ip
|
# Customize logstash output ip
|
||||||
|
|||||||
Reference in New Issue
Block a user