Skip to content

Commit

Permalink
Join 02 and 03 scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaos authored Aug 4, 2021
1 parent 72f8bc1 commit 3789661
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions wazuh/config/02-set_config_filebeat_destination.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
# Wazuh Docker Copyright (C) 2019 Wazuh Inc. (License GPLv2)

set -e

##############################################################################
# Set Filebeat config.
##############################################################################

echo "FILEBEAT - Copy Filebeat config file"
cp filebeat.yml /etc/filebeat/filebeat.yml

echo "FILEBEAT - Set permissions"

chmod go-w /etc/filebeat/filebeat.yml

echo "FILEBEAT - Get Filebeat Wazuh module"

>&2 echo "FILEBEAT - Install Wazuh Filebeat Module."
curl -s "https://packages.wazuh.com/3.x/filebeat/${WAZUH_FILEBEAT_MODULE}" | tar -xvz -C /usr/share/filebeat/module
mkdir -p /usr/share/filebeat/module/wazuh
chmod 755 -R /usr/share/filebeat/module/wazuh

0 comments on commit 3789661

Please sign in to comment.