Hi,
I am prepare templates to allow user to configure the IP and Port of Remote Syslog Server. In the templates hard coding IP works but when i assign the value to a local variable and use the variable in action it does not work as expected. Works fine: action(type="omfwd" Target="10.40.18.11" Port="514" Protocol="udp" Template="NoFileExtnForwardFormat") Does not work as expected: set $.IPADDRESS1 = "10.40.18.11"; set $.PORTNUMBER1 = "514"; action(type="omfwd" Target="$.IPADDRESS1" Port="$.PORTNUMBER1" Protocol="udp" Template="NoFileExtnForwardFormat") Error in syslog: rsyslogd: action 'action 5' suspended, next retry action(type="omfwd" Target=$.IPADDRESS1 Port=$.PORTNUMBER1 Protocol="udp" Template="NoFileExtnForwardFormat") Error in Syslog: error during parsing file /etc/rsyslog-local.d/65-ApplicationLogging.conf, on or before line 40: invalid character '$' in object definition - is there an invalid escape sequence somewhere? [v8.26.0 try http://www.rsyslog.com/e/2207 ] Please suggest the correct method. Appreciate your help Thanks and Regards Lak. _______________________________________________ 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.

