There are a couple Sidecar runtime variables I can use in my configurations, e.g. ${sidecar.nodeName}. Now I have a couple of servers where the log files to be collected are in a different location, but otherwise the same. It would be very useful if I could create my own runtime variables in a sidecar.yml configuration on a specific server, so that I do not have to duplicate an entire log input just to change a subtle thing like a file path. However, I do not see a way of doing so.
This would greatly reduce duplication of configuration snippets. Is there some Sidecar configuration option that can be used for this that is not in the example sidecar.yml file?
Would be nice if the text pasted into variables would also do the variable interpolation (tip: it doesn’t - although I’m currently basing my configuration on the fact it doesn’t :D)
Yeah, noticed the lack of further interpolation myself as well when migrating my configuration from the old Graylog 2.5.x format, where the node id and node name fields would be inside every log input definition. Luckily you can use these as top level fields as well and they get inherited.