Hi, I am trying to have config that does not have the target ip for omfwd hardcoded (although I probably need to restart the service everytime I want it to send to a new ip). I though i could achieve this with backticks.
target=`echo $target` or target=`cat target.txt` but both appear not to work. In case of the variable, I used "export target=10.0.0.2". rsyslogd -N1 does not complain about anything, but service rsyslog status tells me that it cannot resolve hostname "": No such file or directory. In case of the file, it does complain by saying that the target parameter contains whitespace. But the content of the file is only "10.0.0.2". Nothing more, not even a new line. I read in some older post, that some parameter like target can not use backtick variables. Is this still valid? I'm running 8.2001.0 Thanks! -- Sent from: http://rsyslog-users.1305293.n2.nabble.com/ _______________________________________________ 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.

