IMHO it is not possible in Dataprepper. I am a bit surprised by that fact. And wonder how to achieve the goal: show me the errors in the syslog in Discover for example. Without this does it make any sense to store syslog records if I cannot trigger alert?
I tried this and asked some AI for modulo replacement. To solution needed loops and if/else conditions. So no go for DP. BTW, your expression does not work unfortunately
Almost. The problem with the above calculations is that they must be done with integers but DP uses floats during calculations so as a result I have 0.0 instead of the 7 for example.
And I have no idea if I can force DP to change its behavior. Probably cannot.
There is some hope but only for the future versions, as they reserved ‘%’ character. So some day…
But now I’m forced to move the calculations to fluentbit/lua. Ugly it is, but at least works.
Thanx for your help anyway.