Fix filebeat config

This commit is contained in:
Manuel Gutierrez
2020-01-13 10:40:03 +01:00
parent 88b1ace9bd
commit 31ba5923fb
2 changed files with 25 additions and 3 deletions

View File

@@ -25,9 +25,6 @@ RUN yum --enablerepo=updates clean metadata && \
RUN curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-oss-${FILEBEAT_VERSION}-x86_64.rpm &&\
rpm -i filebeat-oss-${FILEBEAT_VERSION}-x86_64.rpm && rm -f filebeat-oss-${FILEBEAT_VERSION}-x86_64.rpm
RUN curl -so /etc/filebeat/filebeat.yml https://raw.githubusercontent.com/wazuh/wazuh/${TEMPLATE_VERSION}/extensions/filebeat/7.x/filebeat.yml &&\
chmod go+r /etc/filebeat/filebeat.yml
RUN curl -so /etc/filebeat/wazuh-template.json https://raw.githubusercontent.com/wazuh/wazuh/${TEMPLATE_VERSION}/extensions/elasticsearch/7.x/wazuh-template.json &&\
chmod go+r /etc/filebeat/wazuh-template.json
@@ -48,6 +45,10 @@ RUN chmod 755 /init.bash && \
sync && /init.bash && \
sync && rm /init.bash
COPY config/filebeat.yml /etc/filebeat/
RUN chmod go-w /etc/filebeat/filebeat.yml
COPY config/etc/ /etc/
# Setting volumes

21
wazuh/config/filebeat.yml Normal file
View File

@@ -0,0 +1,21 @@
# Wazuh - Filebeat configuration file
filebeat.modules:
- module: wazuh
alerts:
enabled: true
archives:
enabled: false
setup.template.json.enabled: true
setup.template.json.path: '/etc/filebeat/wazuh-template.json'
setup.template.json.name: 'wazuh'
setup.template.overwrite: true
setup.ilm.enabled: false
output.elasticsearch:
hosts: ['http://elasticsearch:9200']
#ssl.certificate_authorities:
#ssl.certificate:
#ssl.key:
#username:
#password: