you cannot use a variable as a target, that's not supported.
David Lang On Fri, 6 May 2022, Derek Atkins via rsyslog wrote:
Date: Fri, 6 May 2022 15:49:17 -0400 From: Derek Atkins via rsyslog <rsyslog@lists.adiscon.com> To: rsyslog@lists.adiscon.com Cc: Derek Atkins <de...@ihtfp.com> Subject: [rsyslog] How to parameterize an action? HI, I am trying to parameterize an action in rsyslog.conf, but I can't seem to get the configuration right. For example, I am trying to do something that looks like: $.server = "1.2.3.4"; .... action(type="omfwd" Target=$.server Port="514" Protocol="tcp" template="MyTemplate") But rsyslog is complaining that the '$' an '.' are invalid characters in the object definition. I've been searching but cannot find the right syntax. So what IS the right syntax to do this? Thanks, -derek
_______________________________________________ rsyslog mailing list https://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.