Alert for Future Logs #1398
-
Hello, we have an issue with our OpenSearch Cluster which creates data in the future index, to detect it we want to create an Elastalert that notifies us if there are documents with a timestamp in the future. I tested alerts like this:
But testing the alert only scrapes information for 5m and my dummy document is in 4 days.
Is there any option to scrape information from the "future"? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
I've not attempted to do what you're asking, but you could try using a negative query_delay. Ex:
|
Beta Was this translation helpful? Give feedback.
Understood. I circled back to the first option and found that my initial run did search 7 days into the future. So I don't know why you're seeing a 24h cap on the query_delay. I used the following to test:
This resulted in a large number of queries, starting with this timerange
and ending with this
I did have to give it a
--start 2024-03-25T12:14:00.000Z
to force …