Skip to content

Instantly share code, notes, and snippets.

@rav94
Created April 9, 2019 06:10
Show Gist options
  • Save rav94/b125ce2e83139e9076803c9ced41247b to your computer and use it in GitHub Desktop.
Save rav94/b125ce2e83139e9076803c9ced41247b to your computer and use it in GitHub Desktop.
Filebeat Custom Dockerfile
FROM docker.elastic.co/beats/filebeat:6.5.2
# Copy custom configuration file
COPY filebeat.yml /usr/share/filebeat/filebeat.yml
USER root
# Create a directory to map volume with all docker log files
RUN mkdir /usr/share/filebeat/dockerlogs
RUN chown -R root /usr/share/filebeat/
RUN chmod -R go-w /usr/share/filebeat/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment