I'm trying to move variables to a different location in the JSON structure.
If I do:
set $!trusted!local!gid = $$!gid;
unset $!gid;
set $!trusted!local!uid = $$!uid;
unset $!uid;
set $!trusted!local!pid = $$!pid;
unset $!pid;
set $!trusted!local!appname = $$!appname;
unset $!appname;
set $!trusted!local!cmd = $$!cmd;
unset $!cmd;
the $!trusted!local!* variables are all defined to be null
but if I eliminate the unset statements, both the old and the new variables show
up with the correct value.
This looks like the new variables gets pointed to the old variables instead of
to the contents of the old variables.
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.