On Wed, 15 Mar 2017, Aleksandar Lazic via rsyslog wrote:
no.
there are ways to assign variables to be equal to environemnt variables with
the set command, but those cannot be used for most config options.
Thanks for answer.
Any plans to make it possible?
not at this time, the config language is pretty limited to optimize for run-time
performance. Making the configs able to use variables would produce a
significant complication and slowdown.
Now, I agree that environment variables should be considered fixed for the
length of program execution, but that's not how they are currently treated.
use a pre-processor script to replace placeholders in a file with the desired
values (shell script with sed would do, or you could use any of the server
automation tools like puppet/chef/etc) and just overwrite the rsyslog.conf
before you start
David Lang
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.