Skip to content

Commit

Permalink
Merge pull request #2 from MaastrichtUniversity/release/sprint20
Browse files Browse the repository at this point in the history
Release/sprint20
  • Loading branch information
deanlinssen committed Dec 7, 2020
2 parents d440d64 + 9c51e7d commit 40d7aeb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,17 @@ RUN sed -ri \
-e 's!^(\s*ErrorLog)\s+\S+!\1 /proc/self/fd/2!g' \
"/etc/httpd/conf/httpd.conf"


ARG ENV_FILEBEAT_VERSION

###############################################################################
# INSTALLATION FILEBEAT
###############################################################################

RUN wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-${ENV_FILEBEAT_VERSION}-x86_64.rpm -O /tmp/filebeat.rpm \
&& rpm -Uvh /tmp/filebeat.rpm
ADD filebeat.yml /etc/filebeat/filebeat.yml
RUN chmod go-w /etc/filebeat/filebeat.yml

EXPOSE 80
CMD ["/opt/run-httpd.sh"]
16 changes: 16 additions & 0 deletions filebeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
filebeat.inputs:
- type: log
json.keys_under_root: true
json.add_error_key: true
json.overwrite_keys: true
enabled: true
paths:
- /var/log/httpd/access.log
- /var/log/httpd/error.log
tags: ["DAVRODS"]

# Disable filebeat monitoring
logging.metrics.enabled: false

output.logstash:
hosts: ["elk.dh.local:5044"]

0 comments on commit 40d7aeb

Please sign in to comment.