How to pass custom filebeat.yml to

(Vramakrishnan) #1
  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 ?

(Vramakrishnan) #2

Found the documentation.

docker run
-v ~/filebeat.yml:/usr/share/filebeat/filebeat.yml

(system) #3

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