forked from wazuh/wazuh-docker
Remove Logstash pipeline customization (#280)
This commit is contained in:
committed by
Jesús Linares
parent
910caf6bd3
commit
2b7171101b
@@ -67,8 +67,11 @@ echo "ENTRYPOINT - curl authentication established"
|
||||
|
||||
if [ "$LOGSTASH_OUTPUT" != "" ]; then
|
||||
>&2 echo "ENTRYPOINT - Customize Logstash ouput ip."
|
||||
sed -i 's|elasticsearch:9200|'$LOGSTASH_OUTPUT'|g' /usr/share/logstash/pipeline/01-wazuh.conf
|
||||
sed -i 's|http://elasticsearch:9200|'$LOGSTASH_OUTPUT'|g' /usr/share/logstash/config/logstash.yml
|
||||
|
||||
if [[ "$PIPELINE_FROM_FILE" == "false" ]]; then
|
||||
sed -i 's|elasticsearch:9200|'$LOGSTASH_OUTPUT'|g' /usr/share/logstash/pipeline/01-wazuh.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
@@ -101,10 +104,6 @@ if [[ $SECURITY_ENABLED == "yes" ]]; then
|
||||
|
||||
## Settings for logstash.yml
|
||||
bash /usr/share/logstash/config/10-entrypoint_configuration.sh
|
||||
|
||||
## Settings for 01-wazuh.conf
|
||||
|
||||
bash /usr/share/logstash/config/10-entrypoint_pipeline.sh
|
||||
|
||||
## Add keys to the keystore
|
||||
echo -e "$LOGSTASH_USER" | /usr/share/logstash/bin/logstash-keystore --path.settings /usr/share/logstash/config add LOGSTASH_KS_USER
|
||||
|
||||
Reference in New Issue
Block a user