Divide your logstash config into multiple files

Hi

How can i divide my logstash config into multiple files?
Like for example i want the input part in one file, the filter in another and the output in another.

Kind Regards

Divide up the configuration into different files, put those files in a directory (with no other files) and point Logstash to that directory with the -f option. /etc/logstash/conf.d us usually used for that purpose.

1 Like