Fixed the option to change Filebeat output (#268)

Former-commit-id: 910caf6bd3
This commit is contained in:
AlfonsoRBJ
2019-11-05 16:20:36 +01:00
committed by Jesús Linares
parent 202e1669c5
commit bc693841fd
2 changed files with 6 additions and 17 deletions
-17
View File
@@ -197,20 +197,6 @@ change_api_user_credentials() {
}
##############################################################################
# Customize filebeat output ip
##############################################################################
custom_filebeat_output_ip() {
if [ "$FILEBEAT_OUTPUT" != "" ]; then
sed -i "s/logstash:5000/$FILEBEAT_OUTPUT:5000/" /etc/filebeat/filebeat.yml
fi
}
##############################################################################
# Main function
##############################################################################
@@ -255,9 +241,6 @@ main() {
# Change API user credentials
change_api_user_credentials
# Update filebeat configuration
custom_filebeat_output_ip
# Delete temporary data folder
rm -rf ${WAZUH_INSTALL_PATH}/data_tmp