elastalert icon indicating copy to clipboard operation
elastalert copied to clipboard

Comparing the value of a field against the value of another field

Open Trustys opened this issue 9 years ago • 2 comments

My goal is to compare the value of a field against the value of another field.

For example :

Field1 value : Azerty Field2 value: Azerty.something

I would like to drop an alert if Field 1 and Field 2 share a same (partial) value (Azerty in this example)

I didn't found any existing function which could to the job in the doc. Do you know any other way to do this ?

Trustys avatar May 04 '17 09:05 Trustys

EDIT: I think you want to write an enhancement http://elastalert.readthedocs.io/en/latest/recipes/adding_enhancements.html

It's a piece of code that will be called before any alerts, and you can decide whether or not to drop the alert.

Qmando avatar May 04 '17 17:05 Qmando

Exactly @Qmando . Issue solved. Thanks for your support ! :-)

Trustys avatar May 17 '17 11:05 Trustys