-
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
Support es5 #820
Support es5 #820
Conversation
nice work. LGTM |
Hello! I have an error when I test my config file and after all seem good...:
When I add option --alert, I have so much logs... And it wants interrogate default settings:
|
Ok, I had just needed to precise the global conf with
|
I'm getting this error while running this branch against my es5:
My filter looks like this:
any ideas? Thanks! |
@matthillary Are you using |
@Qmando Huge thanks for the quick reply! The type == any (http://elastalert.readthedocs.io/en/latest/ruletypes.html#any). It worked with the previous ES version, but not with ES5. Hopefully that gives enough information to help! Let me know what else I can provide to help troubleshoot! Thanks! |
Is that a no to using |
@Qmando -- I'm not using either -- it's an here's the full rule minus the alert info:
I hope that helps! Let me know if you need anything else! I'll dig in more tomorrow as well to see if I can get more info on the error. Thanks for taking time to get this up to support for ES5! |
Can you test that ? I had this same error before and now it's ok
|
Works perfectly! Thanks @Alexwii! |
Hmm, I thought this commit would have fixed that bug |
test_rule patches for ES5 support
Changes to get count and terms queries working with es_support branch.
The following rule configuration throws an error when being used on the ES5 branch with ES5:
The error is:
[Update] |
added fix to support es5
'fields' changed to 'stored_fields'
s_host: 127.0.0.1 es_port: 9200 name: Example rule use_strftine_index: true type: frequency index: :cache-diags* num_events: 1 timeframe: minutes: 1filter:
error : 这是为什么呢?那里有错误么 |
@fengyingjie2018 您可以尝试删除索引并重新创建它 有时它不完全工作 |
Change Zabbix alerter
Initial es5 support.
create -> index everywhere.
Tests assume ES 2.
Queries use two formats, one for ES<5 and one for ES>=5.
Note: