docker-filebeat
docker-filebeat copied to clipboard
Enable custom filebeat.yml config file
I am trying the following to replace the filebeat.yml:
./filebeat.yml:/opt/filebeat-1.1.1-x86_64/filebeat.yml
And getting this error when try to run the container:
filebeat | sed: can't move '/opt/filebeat-1.1.1-x86_64/filebeat.ymlcgJcEM' to '/opt/filebeat-1.1.1-x86_64/filebeat.yml': Resource busy
filebeat exited with code 1
Am I doing something wrong?
I had the same need: to be able to add my own custom file, and I solved by replacing it in my own Dockerfile for filebeat.
My filebeat.yml
file is inside config/
directory, and my Dockerfile for building filebeat is:
FROM bargenson/filebeat
COPY ./config/filebeat.yml ${FILEBEAT_HOME}/