configuration supports 'include sub.conf' syntax




Tobias Wolf
September 25, 2013, 6:14 AM

+1 for Urs and Chris.

Richard Pijnenburg
September 25, 2013, 7:44 AM

Hi guys,

We've discussed this internally and we have decided not to implement this.
For one the same behavior ( reusing configs ) can already be done by the current configuration structure.
Second is it would be fairly difficult to implement this. ( and there would be no benefit in processing the configuration )

Michael Schultheiss
September 25, 2013, 8:05 AM

Hi Richard,

Thats's too bad to hear.
This would make the configuration so much simpler an cleaner. I just started with LS and my config is already more than 200 lines long and will grow a lot in feature. Can't imagine that this is so difficult to implement. I mean, it's a simple include of an additional file. It's maybe no benefit in processing the config, but a benefit for the user...

How can i reuse config?

So, i may write a script which puts together the LS config file from multiple config files with includes. This can be done in a simple bash or perl script.

Michael Schultheiss
September 26, 2013, 12:22 PM

OK, made a script for it. You'll find it here:

Take care, i haven't tested it on a live system yet, and it doesn't do any error checking...

The only limitation is that you only can include other files within the main template file, not within files which are included.

Chris Denneen
September 26, 2013, 6:54 PM

Richard / Jordan,

Isn't the config ruby?
Can we use:

input {
load 'input1.conf'
filter {
load 'type1.conf'
load 'type2.conf'


Logstash Developers




Affects versions