Yelp / elastalert

Easy & Flexible Alerting With ElasticSearch
https://elastalert.readthedocs.org
Apache License 2.0
7.97k stars 1.73k forks source link

query_string filter does not work #3212

Open ben-sec opened 2 years ago

ben-sec commented 2 years ago

Hello!

Why is this simple query_string filter not working:

filter:

I get

Error initializing rule New User found: Error searching for existing terms: RequestError(400, 'x_content_parse_exception', {'error': {'root_cause': [{'type': 'parsing_exception', 'reason': 'unknown query [que1:231] [bool] failed to parse field [must]', 'caused_by': {'type': 'parsing_exception', 'reason': 'unknown query [query]', 'line': 1, 'col': 231, 'caused_by': {'type': 'named_object_not_found_exception', 'reason': '[1:231] unknown field

What's wrong here? Thanks in advance!

Cheers, Ben

nsano-rururu commented 2 years ago

look https://github.com/Yelp/elastalert/issues/3178

ben-sec commented 2 years ago

Should I open a new issue under Elastalert 2?

nsano-rururu commented 2 years ago

of course

saurabhPV commented 2 years ago

@ben-sec Did you find the solution? Are you getting this error for New Term rule ? It works for every rule except this type

ben-sec commented 2 years ago

No, I didn't and yes, I tried it for a New Term rule.

saurabhPV commented 2 years ago

Breadcrumb for whoever stumbles upon this issue https://github.com/jertel/elastalert2/discussions/459