Greeting,
To avoid having one big .conf receiving logs from filebeat on 5044, filtering through tons of ifs and elses, then forwarding to elastic, I've been trying to use the --path.config command lately as I understand it, it should append multiple .conf files together in a lexi~ order.
The goal is the to make one .conf file per, say, application with just an "if [app][name] == "bla" and be done.
**my .service relevant bit is **
ExecStart=/usr/share/logstash/bin/logstash "--path.config" "/etc/logstash/config.d"
my folder structure is
/etc
--/logstash
----/conf.d
------/_input.conf
------/app01.conf
------/app02.conf
------/app03.conf
------/output.conf
_input.conf contains the input, output the output
The appXX.conf contains the filters.
I just can't get that logic to work...