elastalert icon indicating copy to clipboard operation
elastalert copied to clipboard

Time filter is not working.

Open prateekk1709 opened this issue 8 years ago • 2 comments

Hi. I am trying to run a rule in ElastAlert, the rule works fine without the filter and I get alerts. But I want to alert only to last 10 minutes of data. I have written the following filter part in the rule. When I run the rule there is no error but no hits occur and thus no alerts are raised. Can anyone help, please? Thanks in advance. filter:

  • range: systime: gte: "now-10m" lt: "now"

prateekk1709 avatar Feb 06 '18 09:02 prateekk1709

What version of elasticsearch are you running? What is the output in the logs?

rerolled avatar Feb 06 '18 16:02 rerolled

Hey!! I found out the mistake. It was on my part. SysTime was in Camelcase. Sorry. Closing the issue. Thanks.

prateekk1709 avatar Feb 07 '18 05:02 prateekk1709