Hi.
I'm reading
https://www.rsyslog.com/doc/master/configuration/lookup_tables.html and
I believe there's some mistake with wording regarding sparse arrays.
Quoting: "*Match criterion*: A match happens on the first index that is
less than or equal to the looked-up key."
If it were so, if I started my table on index=0, every single match
should happen on this value since it's obviously less than or equal to
any looked-up integer. So, judging from the example (and from what I'd
expect it to be) it's rather that match happens on the first index that
is bigger than or equal, not less than or equal.
And, for the sake of completness, it would be great to include info that
sparseArray should also consist of monotonic indexes. I assume that the
author assumed "inheritance" from previous paragraph describing normal
array.
Best regards,
MK
_______________________________________________
rsyslog mailing list
https://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.
I'm reading
https://www.rsyslog.com/doc/master/configuration/lookup_tables.html and
I believe there's some mistake with wording regarding sparse arrays.
Quoting: "*Match criterion*: A match happens on the first index that is
less than or equal to the looked-up key."
If it were so, if I started my table on index=0, every single match
should happen on this value since it's obviously less than or equal to
any looked-up integer. So, judging from the example (and from what I'd
expect it to be) it's rather that match happens on the first index that
is bigger than or equal, not less than or equal.
And, for the sake of completness, it would be great to include info that
sparseArray should also consist of monotonic indexes. I assume that the
author assumed "inheritance" from previous paragraph describing normal
array.
Best regards,
MK
_______________________________________________
rsyslog mailing list
https://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.