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
+4 -3
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