[rsyslog-notify] Forum Thread: can variables be used to hold IP addreses? - (Mode 'post')
noreply at adiscon.com
noreply at adiscon.com
Sun Mar 22 17:25:04 CET 2015
User: hhm
Forumlink: http://kb.monitorware.com/viewtopic.php?p=25345#p25345
Message:
----------
Hi all,
More foolishness. :-) I am trying to use variables to capture IP addresses
of remote forwarding targets. My goal is to use these variables to reduce
code replication for load-balancing scenarios.
Early in the config I put this
[code:30rwom5e]set $/ipaddr = "10.0.0.1";[/code:30rwom5e]
Later I tried
[code:30rwom5e]action(type="omfwd"
# Target="10.0.0.1"
Target="$/ipaddr"
Port="514"
Protocol="udp"
)[/code:30rwom5e]
The "rsyslog -N1" config check passed, but [u:30rwom5e]no
worko[/u:30rwom5e]. I also tried variants of including "%" chars, and
without quotes (which failed config test).
Should this have worked? Is there some config/syntax magic I missed? Or am
I mis-using a feature?
thx
hunter
More information about the rsyslog-notify
mailing list