I suggest to use the regex tester to try this out: http://www.rsyslog.com/regex/
Rainer On Thu, Feb 20, 2014 at 4:04 AM, Justin Haynes <[email protected]>wrote: > rsyslog-users - > > I have tried to use either of the following rules to achieve the effect of > routing a message based on the last digit of the part before the first dot > in the FQDM: > > :hostname, ereregex, "^([^.]+)[0-1]\." ?last_digit_0_through_1 > &@x.x.x.x:x > &~ > > :hostname, ereregex, "^([^.]+)[0-1]\..+" ?last_digit_0_through_1 > &@x.x.x.x:x > &~ > > I expect this to match: > asdf1231.blahblah.com > > I expect this to not match: > asdf1235.blahblah.com > > But what happens instead is that they both match. What am I missing? > _______________________________________________ > 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.

