Include part(s) of configuration in conf file


(Parosio) #1

Hello,
I'm aware it's possible to have logstash configured with a merge of different files found in a directory, but I've got a rather different structure for input files (and, consequently, for configurations).

Nevertheless, there are some tasks wich are common, and could be reused as-is in different configuration files.

I wish it'd be possible to have such chunck of configuration (for example the geolocalization of IP addresses) in a separate file and include them in the actual configuration files only when needed.

Is there anything to accomplish this?


(Parosio) #2

As often happens, the answer was in the man:

https://www.elastic.co/guide/en/logstash/6.4/running-logstash-command-line.html#command-line-flags

it's enough to put the configuration filenames in the same -f option:

bin/logstash --debug -f '/tmp/{one,two,three}'


(system) #3

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