elastalert icon indicating copy to clipboard operation
elastalert copied to clipboard

Querying a sentence with OR operator

Open suchandbabu opened this issue 8 years ago • 2 comments

Hi, @Qmando @sathishdsgithub

Can you please help me to query below condition.

Rule should get alerted if the following condition met.

msg: "F300 [Request] Remove: (Connection Reset by Destination)" OR msg: "F300 [Request] Remove: (Connection Reset by Source)"

i tried an unsucesfull attempt using wildcard.

  • wildcard: msg: "F300 [Request] Remove: (Connection Reset by *

suchandbabu avatar Mar 14 '18 16:03 suchandbabu

filter:
 - query_string:
      query: "msg: \"F300 [Request] Remove: (Connection Reset by Destination)\" OR msg: \"F300 [Request] Remove: (Connection Reset by Source)\""

https://www.elastic.co/guide/en/elasticsearch/reference/6.1/query-dsl-query-string-query.html

Qmando avatar Mar 14 '18 17:03 Qmando

wow..You are really awesome.. Thank you soo much.

suchandbabu avatar Mar 14 '18 18:03 suchandbabu