elastalert icon indicating copy to clipboard operation
elastalert copied to clipboard

limit_execution new feature : problem with synchronization between main cron and rules specific cron not matching

Open damioune123 opened this issue 7 years ago • 1 comments

Hello, I've encountered a problem with the new limit_execution feature. Let's say the main cron is running every rules every minutes and I have a limit_execution on a specific rule with for example that value : "10 11-17 * * 1-5". If the cron of the specific rule wakes up at 11:10:02 (because previous rules took sometimes), the rules will be paused until next execution without doing anything.

damioune123 avatar Feb 06 '19 15:02 damioune123

Hello, I've encountered a problem with the new limit_execution feature. Let's say the main cron is running every rules every minutes and I have a limit_execution on a specific rule with for example that value : "10 11-17 * * 1-5". If the cron of the specific rule wakes up at 11:10:02 (because previous rules took sometimes), the rules will be paused until next execution without doing anything.

Hi @damioune123 could you please guide me how the alert.yaml file should like ?

I am unsure on under which hierrachy should we add this attribute limit_execution:

Is it okay if I add the attribute like this :

type: frequency
index: prod-filebeat-k8s-*
timeframe:
  minutes: 0
num_events: 1
limit_execution: "* 02-03 * * *"
filter:
  - term:
      kubernetes.container.name: get-sqs-stats
  - term:
      json.message: "Approximate number of messages on the queue"
  - term:

rabiashaikabdulkader avatar Sep 22 '20 15:09 rabiashaikabdulkader