Skip to content

bool operations not working #390

Closed Locked Answered by jertel
zayalaksme asked this question in Q&A
Aug 6, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

You probably want to use should instead of must on the outer bool block. As you have it written now it is requiring both monitor.name = GOOGLE AND monitor.name = tcp, which is impossible. Study this blog post to better understand the bool concept: https://www.elastic.co/blog/lost-in-translation-boolean-operations-and-filters-in-the-bool-query

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@zayalaksme
Comment options

@jertel
Comment options

Answer selected by jertel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants