Our logstash configurations are actually splitted into 2 directories:
- main configuration files.
- group specific configuration files.
According to docs:
-f, --path.config CONFIG_PATH
Load the Logstash config from a specific file or directory. If a directory is given, all files in that directory will be concatenated in lexicographical order and then parsed as a single config file. Specifying this flag multiple times is not supported. If you specify this flag multiple times, Logstash uses the last occurrence (for example, -f foo -f bar is the same as -f bar).
You can specify wildcards (globs) and any matched files will be loaded in the order described above. For example, you can use the wildcard feature to load specific files by name:
bin/logstash --debug -f '/tmp/{one,two,three}'
With this command, Logstash concatenates three config files, /tmp/one, /tmp/two, and /tmp/three, and parses them into a single config.
but sadly...
bin/logstash --debug -f '/tmp/{firstFile,secondFile}' <---works
bin/logstash --debug -f '/tmp/{firstDir,secondDir}' <--- doesn't work
As the configuration files are stored in host, and logstash is deployed as a container, and considering we are trying to enable automatic-reload of configuration files, does anyone know why this doesn't work or how could we solve this issue?
Issue: https://github.com/elastic/logstash/issues/5097
Regards