> -----Original Message----- > From: [email protected] [mailto:rsyslog- > [email protected]] On Behalf Of [email protected] > Sent: Friday, October 21, 2011 10:13 PM > To: rsyslog-users > Subject: Re: [rsyslog] pri-text property incorrectly appending pri? > > On Fri, 21 Oct 2011, Rainer Gerhards wrote: > > > Yes, and it would be more efficient than the if -- but still less > efficient > > than the simple selector filter. > > > > If you are up for speed, use > > - traditional selector > > - property > > - script > > Filter in that order and go to the next one only if you actually need > to. IF > > speed doesn't matter, this is obviously unimportant. > > It would be handy to have some idea of how big the speed differences > are > between these (if anyone has some time to run benchmarks)
I have never benchmarked selectors vs. properties. There is some difference (selectors require exactly one memory access!), but I'd assume it usually is not that big (except, of course, for regex matches). The script filters in v4 and v5 are really slow, order of 10+ times slower than selectors. In v6.3+ script-based filters have much better efficiency, I'd expect (but did not yet benchmark) lightly more overhead than property based filters. Rainer _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com

