On Mon, 23 Nov 2015, Tomas Heinrich wrote:
On 11/23/15 07:32, David Lang wrote:
On Mon, 23 Nov 2015, Peter Portante wrote:
This does not appear to work on v8.14.0:
set $.foo = "foo";
set $.bar = "foo";
if ($.foo == $.bar) then {
*.* /var/log/rsyslog-debug.log;RSYSLOG_DebugFormat
}
yes it should work.
It doesn't seem to work.
Surprisingly, this does:
set $!foo = "foo";
set $!bar = "foo";
if ($.foo == $.bar) then {
/tmp/rs.log
}
Code in msg.c:msgPropDescrFill() (used in the cmp expression) "unifies" all
the prefixes to '!'. I'm not sure whether this processing is missing from
other places (e.g. the "set" operation), or it is no longer desirable...
That is a bug, not the first one we've run into where $! works and other
variable classes don't. could you file a bug in the github issue tracker for
this?
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.