Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kibana Search with NOT

Tags:

kibana

Trying to do a Kibana search that includes some NOTs but getting results that include the NOTs so guessing my syntax is incorrect:

"chocolate" AND "milk" AND NOT "cow" AND NOT "tree"
like image 492
Guy Avatar asked Feb 05 '15 00:02

Guy


2 Answers

You can add an '!' before each expression for NOT and you can use '( expression )' for more advanced expressions.

For your example this will work (it can be the same field): field1:chocolate AND field2:milk AND !(field3:cow AND field4:tree)

like image 187
Zanbel Avatar answered Jan 01 '23 15:01

Zanbel


"chocolate" AND "milk" NOT "cow" NOT "tree"

like image 41
amit Avatar answered Jan 01 '23 13:01

amit