-
I have a rule that I'm running in elastalert-test-rule, and it returns the hits appropriately as expected. But, when I run elastalert, all I see is:
I've run other rules that have gotten 0 hits, but still show the progressive info (and write to the writeback index successfully in my cluster) after "elastalert Starting up" instead of just jumping back to a fresh command line immediately. I've tried to use es_debug_trace, but nothing is in my trace.log after doing that - it's simply blank. Any help with this would be greatly appreciated, as I've exhausted literally every search engine resource related to elastalert at this point. In case it's needed, here are the config and rule files being referenced:
Rule File:
This rule file was made specifically for troubleshooting this issue and will 100% get multiple hits (worked as expected using elastalert-test-rule). |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 12 replies
-
I don't think it's a rule problem. Yours looks fine. How are you starting ElastAlert 2? |
Beta Was this translation helpful? Give feedback.
-
I do understand the bind argument. Thank you for that explanation, that does make it more clear. How would I go about testing a rule using elastalert-test-rule via docker? |
Beta Was this translation helpful? Give feedback.
-
I'm running into the same issue here, but it's intermittent. I'm in the middle of testing with old data (logs output between 10:00 UTC and 1:00pm UTC on May 31) cause we're moving from ELK 6 to ECK 8, and need to test if ElastAlert2 will work as a replacement for Watchers. Running If I then try to run If I try to run Output when it doesn't get past Starting up.
Details of my setup:
NOTE - None of those seem to work. I'm considering deploying the helm chart to see if this is just a weird Mac + Docker + ElastAlert2 issue that will be resolved by using Helm in k8s, but if you have any ideas, I'd love to be able to test more locally. Config File:
rule.yaml
|
Beta Was this translation helpful? Give feedback.
-
According to the It's possible this was an oversight in the original implementation for historic data processing. Regardless, you will need to omit the |
Beta Was this translation helpful? Give feedback.
I don't think it's a rule problem. Yours looks fine. How are you starting ElastAlert 2?