Yelp / elastalert

Easy & Flexible Alerting With ElasticSearch
https://elastalert.readthedocs.org
Apache License 2.0
7.97k stars 1.73k forks source link

KeyError: 'scroll_keepalive' #647

Open ashokc opened 8 years ago

ashokc commented 8 years ago

Any pointers on why I get this error and try testing a simple rule... The install went through fine...

INFO:elastalert:Note: In debug mode, alerts will be logged to console but NOT actually sent. To send them, use --verbose. Traceback (most recent call last): File "/usr/bin/elastalert-test-rule", line 9, in load_entry_point('elastalert==0.0.93', 'console_scripts', 'elastalert-test-rule')() File "/usr/lib/python2.7/site-packages/elastalert-0.0.93-py2.7.egg/elastalert/test_rule.py", line 316, in main test_instance.run_rule_test() File "/usr/lib/python2.7/site-packages/elastalert-0.0.93-py2.7.egg/elastalert/test_rule.py", line 311, in run_rule_test self.run_elastalert(rule_yaml, conf, args) File "/usr/lib/python2.7/site-packages/elastalert-0.0.93-py2.7.egg/elastalert/test_rule.py", line 225, in run_elastalert client = ElastAlerter(['--debug']) File "/usr/lib/python2.7/site-packages/elastalert-0.0.93-py2.7.egg/elastalert/elastalert.py", line 96, in init self.scroll_keepalive = self.conf['scroll_keepalive'] KeyError: 'scroll_keepalive'

Qmando commented 8 years ago

This is a bug that I just introduced yesterday. I'll try to fix this right away. You can install version 0.0.92 to fix it.

ashokc commented 8 years ago

Thanks, I will try to downgrade to 0.0.92.

Qmando commented 8 years ago

This should be fixed on master branch now, and I've released a new version 0.0.94 for it.

omercnet commented 7 years ago

shouldn't it pull the default value from https://github.com/Yelp/elastalert/blob/d033e26e49f487f28cc639350a88abfa254e9707/elastalert/config.py#L381 ?

Qmando commented 7 years ago

The test script doesn't call load_rules.