Hi, I have create an alert whenever match a field, and Im having problems to make it work. the query works well in devs tools when I query for now-7d, but in the watch is never executed. this is my range
Mmmm seems that its not necessary, I have another alert identical to the one that has problems, with the same range, the only difference that match another phrase, and seems to work, I got the email , and the index has a document that match....
What happens internally here is, that your date with a timezone will be converted to UTC and then stored in Elasticsearch. If you are searching for now-5m it still has happened five minutes ago and this will be catered for. As long as you ensure the timezone is set when indexing (via the date or the mapping), all should be good.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.