Skip to content
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

Apply ES5 filter fix when using test rule #910

Merged
merged 1 commit into from
Feb 21, 2017
Merged

Apply ES5 filter fix when using test rule #910

merged 1 commit into from
Feb 21, 2017

Conversation

kureus
Copy link
Contributor

@kureus kureus commented Feb 21, 2017

When using elastalert-test-rule on elasticsearch v5 an error will be thrown that running your filter failed despite the test continuing to run successfully

image

It seems to keep backward syntax compatibility code was added to trim filters if using ES5 (bb09323) but this was only done inside the ElastAlerter class and not for MockElastAlerter. Not sure on preferred way to approach this but abstracted the code fix and used it in test_file() aswell fixing the error. Comments appreciated :-)

@Qmando
Copy link
Member

Qmando commented Feb 21, 2017

Good stuff. Thanks a ton for fixing this!

@Qmando Qmando merged commit ce9d08b into Yelp:master Feb 21, 2017
@Abhisar
Copy link

Abhisar commented Mar 13, 2017

@kureus
Could you please help me with a sample rule for ES 5.0.1 for frequency type.I have been trying but it seems the query isn't getting executed and all the records for frequency get alerted.

@kureus
Copy link
Contributor Author

kureus commented Mar 13, 2017

@Abhisar You're best asking on the elastalert gitter for help. Or if you think there is a bug open an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants