-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to specify different run_every: values on rules #497
Comments
Not currently supported. You have to run multiple instances with two separate rules folders and two separate config files. They could both use the same elastalert_status index without problems. |
Thanks, is this a core philosophy issue? or something that I should look into adding to the project? |
If you want to add that, that would be awesome. The main looping code is pretty dumb now, it just runs everything and then sleeps. You could basically turn it into an async loop with each rule having it's own timing. I would definitely accept a pull request for that, it's just something I am unlikely to put the effort into at this point. |
Cool. It may not come soon, but I think I will be working with this tool a lot over the next few months. As I get more comfortable with it, I hope to contribute a bit. |
Excellent. I'm mostly in maintenance mode for this project at the moment but always happy to help and get pull requests. Ask in https://gitter.im/Yelp/elastalert if you have any questions. |
+1 This would be very helpful vs having a flood of checks then nothing. |
Would like that feature! |
Do we have this feature now ? |
It's in the beta releases, which I'm very very close to merging with master. |
Hello @Qmando |
Add a different run_every to each rule's yaml. That's it. |
Thanks.
Essodjolo KAHANAM
…---- On jeu., 08 août 2019 02:33:16 +0200 [email protected] wrote ----
Add a different run_every to each rule's yaml. That's it.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hello @Qmando I've made a fresh installation of elastalert (had toubles with python 2 so did it with python3).
Could you please provide any help? |
@Qmando
I was able to get my rule triggered and received a Slack alert. |
But I would have tought that
|
@Qmando I've faced the same issue. Here're my config
and rules:
I have a list of similar rules with different queries and What's wrong here? @essodjolo Did you manage to find the workaround except running another instance of elastalert? |
Is this issue resolved ? |
Sorry this was open for so long... I've just opened a PR to fix the issue. |
I have some rules I want to run every 10 seconds, and some that can run only once a day. But I can't seem to find a way to override the run_every: value in the base config file. Is this currently supported?
The text was updated successfully, but these errors were encountered: