mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-02 13:03:20 +00:00
24 lines
761 B
Bash
24 lines
761 B
Bash
#!/bin/bash
|
|
# Wazuh Docker Copyright (C) 2019 Wazuh Inc. (License GPLv2)
|
|
|
|
##############################################################################
|
|
# Set Filebeat destination.
|
|
##############################################################################
|
|
|
|
if [[ $FILEBEAT_DESTINATION == "elasticsearch" ]]; then
|
|
|
|
echo "FILEBEAT - Set destination to Elasticsearch"
|
|
cp filebeat_to_elasticsearch.yml /etc/filebeat/filebeat.yml
|
|
|
|
elif [[ $FILEBEAT_DESTINATION == "logstash" ]]; then
|
|
|
|
echo "FILEBEAT - Set destination to Logstash"
|
|
cp filebeat_to_logstash.yml /etc/filebeat/filebeat.yml
|
|
|
|
else
|
|
echo "FILEBEAT - Error choosing destination. Set default filebeat.yml "
|
|
fi
|
|
|
|
echo "FILEBEAT - Set permissions"
|
|
|
|
chmod go-w /etc/filebeat/filebeat.yml |