Ah , misunderstsnding: %...% is property replacer. You cannot use that outside of templates.
Sent from phone, thus brief. -------- Ursprüngliche Nachricht -------- Von: David Lang <da...@lang.hm> Datum: 26.03.2013 20:04 (GMT+01:00) An: rsyslog-users <rsyslog@lists.adiscon.com> Betreff: Re: [rsyslog] property replacer and regexps Gary, I thought to set the contents of $!foo you had to use something like like: set $!var = "something" so wouldn't what you are trying be: set $!foo = "%msg:R,ERE,0,DFLT:rg_counter--end% note $!foo on the left side and msg on the right side. David Lang On Tue, 26 Mar 2013, Gary Foster wrote: > Date: Tue, 26 Mar 2013 11:58:58 -0700 > From: Gary Foster <gfos...@realgravity.com> > Reply-To: rsyslog-users <rsyslog@lists.adiscon.com> > To: rsyslog-users <rsyslog@lists.adiscon.com> > Subject: Re: [rsyslog] property replacer and regexps > > Ok, it's not just a % escape issue after all (sorry for the continued followup > spammage), because even this line causes a config error: > > %$!foo:R,ERE,0,DFLT:rg_counter--end% > > which should, if I understand correctly, put the entire contents of $msg in > $!foo but instead fails to load with a config error. > > -- Gary F. > > _______________________________________________ > 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. > _______________________________________________ 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. _______________________________________________ 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.