+1 for Urs and Chris.
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 )
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.
OK, made a script for it. You'll find it here: https://github.com/ursweiss/logstash-conf-merger
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.
Richard / Jordan,
Isn't the config ruby?
Can we use: