Support flexible stream rule conditions
Currently all stream rules are AND'ed together and messages will not match unless all stream rules can be applied successfully - this is far from ideal. Graylog should at least expose functionality to allow selecting between 'AND' or 'OR' evaluation of rules.
Under some circumstances you can also achieve the above by using regular expressions but this is not only complicated but the regular expression matching also puts unnecessary load on the server nodes.
:+1:
:+1: https://groups.google.com/forum/#!searchin/graylog2/stream$20rule%7Csort:date/graylog2/1D2gRmUcbic/GWFF-aFoFVYJ
First
When i add multiple Rules on one Stream, then these Rule will be evaluated with AND.
Example Rule1: prop1 must match exactly 192.168.0.1 Rule2: prop1 must match exactly 192.168.0.2
Will never match. Because both rules are evaluated AND. In my opinion the rules should be evaluated independently -> OR
Why is it that way implemented? StreamRouterEgine.isMatched() : boolean
Second
There is one bigger problem which is not possible to resolve with the "Regex Rule". If you want to add a second Rule which matches on an other Gelf Property. The Regex Rule (and all other Rules) are linked directly to exactly one Gelf Property (In GL Web called Field).
:+1:
AND, OR is possible with the current version