docker-filebeat icon indicating copy to clipboard operation
docker-filebeat copied to clipboard

Enable custom filebeat.yml config file

Open thiagofelix opened this issue 8 years ago • 1 comments

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?

thiagofelix avatar Jul 07 '16 21:07 thiagofelix

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}/

notrev avatar Oct 13 '17 13:10 notrev