I am trying to get some confirmation whether filebeat automatically adds new input files that are dropped in a config path with a GLOB pattern or not ? In our case we will have a number of applications that will be running on a shared host and during deployment we would like to drop input files for each application in a special folder that will be picked up by the filebeat process without it having to be restarted.
According to another thread (Clarifications regarding reload configuration) the reloading feature in filebeat should cover file content changes in files that existed during init of filebeat aswell as newly added input files while the filebeat process is running. Unfortunately I cannot get this to work.
I have checked the following:
- Running the latest version of filebeat, 6.3.1 on Linux
- The file permissions of the input file is 0440 with ownership belonging to the filebeat user
- The input file works when the filebeat process is restarted
Snippets of my config looks like this:
filebeat: config: inputs: enabled: true path: /opt/filebeat-test/config/inputs/*.yml reload: enable: true period: 10s
drwxr-x---. 2 filebeat-local-user filebeat-local-group 48 Jul 23 10:12 . drwxr-x---. 4 filebeat-local-user filebeat-local-group 52 Jul 23 10:12 .. -r--r-----. 1 filebeat-local-user filebeat-local-group 101 Jul 23 10:17 filebeat-log.yml -r--r-----. 1 filebeat-local-user filebeat-local-group 63 Jul 23 09:56 syslog.yml
Any ideas what could be wrong ?