elastalert icon indicating copy to clipboard operation
elastalert copied to clipboard

Number of rules I can run

Open seclyn opened this issue 8 years ago • 2 comments

I'm having issues where alerts are currently being missed and can't seem to figure out why. If I run one rule, things are great, the more I add, the more alerts that get missed. Currently only running 59 rules and they run every minute using the default buffer of 1 minute, and generally speaking looking back 15-30 minutes.

Looking at the docker stats it seems OK?

CPU% 0.02 Mem Usage: 8.523MiB / 0.03% Mem Limit: 31.41GiB

Thoughts? Most of the rules are frequency running queries. A few cardinality used to detect port scans and such.

seclyn avatar Sep 11 '18 15:09 seclyn

8Mb seems awfully low, even for just a single rule.

Are you sure the alerts are being missed? You should see from the logs (add --verbose if you aren't already) that every rule is getting run. If it does fall behind, you should see "Querying ___ took longer than __". In that case, it will generally keep working, but the latency between alerts might be higher.

We've had several hundred on a single instance without difficulty. However, there definitely are cases where the memory consumption can be large if you're querying an index with tons of documents. There are some optimizations that are usually possible if that's the case.

Qmando avatar Sep 11 '18 17:09 Qmando

what's that optimizations ? @Qmando

kdszh avatar Aug 22 '20 16:08 kdszh