-
Hi, First of of all thank you for the great project, I am still new to the world of elastic and especially elastalert. I have got the basic alerting working however running into issues when loading up a rule yaml with few "and", "or" & "wildcards". Below is the query and the error I get. I am probably not writing the query string correctly and wanted to see if can be guided to fix this?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You've got a few problems in your query. I suggest reading (perhaps studying even) this page: https://lucene.apache.org/core/2_9_4/queryparsersyntax.html And then go into Kibana on your ES cluster, change to Lucene Query syntax and get the query working properly there. Once you have the query working in Kibana and returning the correct results, refer back to what you read in the link above to properly escape the quotations and backslack characters. |
Beta Was this translation helpful? Give feedback.
You've got a few problems in your query. I suggest reading (perhaps studying even) this page: https://lucene.apache.org/core/2_9_4/queryparsersyntax.html
And then go into Kibana on your ES cluster, change to Lucene Query syntax and get the query working properly there. Once you have the query working in Kibana and returning the correct results, refer back to what you read in the link above to properly escape the quotations and backslack characters.