Skip to content

Commit

Permalink
Implement wazuh Filebeat Module
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose M committed Aug 12, 2019
1 parent b078250 commit 2a77c6a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion wazuh/config/01-config_filebeat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,17 @@

set -e

WAZUH_FILEBEAT_MODULE=wazuh-filebeat-0.1.tar.gz

# Modify the output to Elasticsearch if th ELASTICSEARCH_URL is set
if [ "$ELASTICSEARCH_URL" != "" ]; then
>&2 echo "Customize Elasticsearch ouput IP."
sed -i 's|http://elasticsearch:9200|'$ELASTICSEARCH_URL'|g' /etc/filebeat/filebeat.yml
fi
fi

# Install Wazuh Filebeat Module

curl -s "https://packages-dev.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 2a77c6a

Please sign in to comment.