I want to be alerted when the motor load on a machine is more than 10 higher or lower than the other motor load (they should usually be balanced and share the load evenly. Unbalanced load could lead to a failure).
Would I essentially need to build two alerts for this? One for alerting when Z is 10 higher than Y, and another for when Z motor is 10 lower than Y? Or can it be done in one?
If ZLoad > (YLoad +10) when [tag]=STOPPED
You can do both in One. Something like this:
your current search fetching zLoad and YLoad
| eval diff=zLoad-YLoad , eval type=if(diff>0,"Higher","Lower")
| where abs(diff)>=10