forked from wazuh/wazuh-docker
Remove Logstash pipeline customization (#280)
This commit is contained in:
committed by
Jesús Linares
parent
910caf6bd3
commit
2b7171101b
@@ -44,9 +44,5 @@ output {
|
||||
elasticsearch {
|
||||
hosts => ["elasticsearch:9200"]
|
||||
index => "wazuh-alerts-3.x-%{+YYYY.MM.dd}"
|
||||
#user => service_logstash
|
||||
#password => service_logstash_internal_password
|
||||
#ssl => true
|
||||
#cacert => "/path/to/cert.pem"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Wazuh App Copyright (C) 2019 Wazuh Inc. (License GPLv2)
|
||||
#
|
||||
# OSSEC container bootstrap. See the README for information of the environment
|
||||
# variables expected by this script.
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
##############################################################################
|
||||
# Adapt 01-wazuh.conf pipeline. Adapt pipeline if it is necessary.
|
||||
##############################################################################
|
||||
|
||||
if [[ $SECURITY_ENABLED == "yes" ]]; then
|
||||
|
||||
echo "PIPELINE - TO DO"
|
||||
# Settings for 01-wazuh.conf
|
||||
# TO DO
|
||||
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user