Open sathishdsgithub opened 6 years ago
Wow, it makes your elastalert work hard? :D not just elasticsearch itself during the query?
never happened to me... i run it in a very tiny container.. it does eat up RAM up to like 4GB sometimes... but not CPU. Maybe it's your whitelists, some extra data that causes hard work on elastalert side...
what are those ?
import:
- filter-whitelist-ip
- filter-whitelist-zone
- va-scanner-ip
- scanners-ip
- filter-whitelist-source-port
@Dmitry1987 @Qmando
It contains several NOT filter
. I have created this to whitelist IP address and zones something like below.
filter:
- query:
query_string:
query: "NOT srx-source-address: (10.10.10.1 OR 10.10.10.2 OR 10.10.10.3 )"
Well, this should apply load to elasticsearch itself and not elastalert... Weird. Sorry have no idea, maybe try with and without them whitelists to verify that they cause it. Otherwise it might just be some bad version of elastalert? Or something wrong in general configs.
On Feb 25, 2018 16:37, "sathishdsgithub" notifications@github.com wrote:
@Dmitry1987 https://github.com/dmitry1987 @Qmando https://github.com/qmando
It contains several NOT filter. I have created this to whitelist IP address something like below.
filter:
- query: query_string: query: "NOT srx-source-address: (10.10.10.1 OR 10.10.10.2 OR 10.10.10.3 )"
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Yelp/elastalert/issues/1568#issuecomment-368314388, or mute the thread https://github.com/notifications/unsubscribe-auth/AI71-FisThX2IgEZccRJQ6t-rih-voFMks5tYXAjgaJpZM4SQyvK .
@Qmando @Dmitry1987 The below rule uses 91% of the CPU all the time. Can someone tell how to fix this?. Also, I would like to know is there any option to run elastalert in
multithread
. I have 16 core CPU , but elastalert uses only one CPU core :-( . I wanted to know can we run python elastalert in parallel processing?