On Wed, 14 Dec 2016, mostolog--- via rsyslog wrote:
I was trying to use myhostname system variable.
you have to do $$myhostname, not just $myhostname.
unfortunantly, these property names were defined a long time ago, before
rainerscript was created, so you used todo things like:
:msg, startswith, "foo", /var/log/bar
:$myhostname, startswith, "baz", /var/log/boo
and it worked well
but when you then do
set $!data!myhost=$msg;
then using $myhostname becomes
set $!data!myhost=$$myhostname;
but changing the property names to eliminate the $$ that shows up frequently
would break old configs...
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.