How to pass custom filebeat.yml to docker.elastic.co/beats/filebeat?

  1. Can someone share steps to pass custom filebeat.yml to filebeat docker ?

Inside docker I see config in /usr/share/filebeat/filebeat.yml.

I plan to volume mount the logs directory from host.
Do I have to do the same to volume mount the config yml directory as well ?

  1. Also if filebeat.yml config changes, will filebeat pick it up automatically or do I need to restart the docker ?

Found the documentation.

docker run
-v ~/filebeat.yml:/usr/share/filebeat/filebeat.yml
docker.elastic.co/beats/filebeat:5.5.0

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.