Traceback (most recent call last):
File "/opt/python3/bin/elastalert-test-rule", line 11, in <module>
load_entry_point('elastalert==0.2.1', 'console_scripts', 'elastalert-test-rule')()
File "/opt/python3/lib/python3.6/site-packages/elastalert-0.2.1-py3.6.egg/elastalert/test_rule.py", line 445, in main
test_instance.run_rule_test()
File "/opt/python3/lib/python3.6/site-packages/elastalert-0.2.1-py3.6.egg/elastalert/test_rule.py", line 437, in run_rule_test
self.run_elastalert(rule_yaml, conf, args)
File "/opt/python3/lib/python3.6/site-packages/elastalert-0.2.1-py3.6.egg/elastalert/test_rule.py", line 318, in run_elastalert
client.run_rule(rule, endtime, starttime)
File "/opt/python3/lib/python3.6/site-packages/elastalert-0.2.1-py3.6.egg/elastalert/elastalert.py", line 905, in run_rule
if not self.run_query(rule, rule['starttime'], endtime):
File "/opt/python3/lib/python3.6/site-packages/elastalert-0.2.1-py3.6.egg/elastalert/elastalert.py", line 634, in run_query
data = self.get_hits(rule, start, end, index, scroll)
File "/opt/python3/lib/python3.6/site-packages/elastalert-0.2.1-py3.6.egg/elastalert/elastalert.py", line 385, in get_hits
**extra_args
File "/opt/python3/lib/python3.6/site-packages/elasticsearch/client/utils.py", line 84, in _wrapped
return func(*args, params=params, **kwargs)
TypeError: search() got an unexpected keyword argument '_source_include'
File "/opt/python3/bin/elastalert-test-rule", line 11, in <module>
load_entry_point('elastalert==0.2.1', 'console_scripts', 'elastalert-test-rule')()
File "/opt/python3/lib/python3.6/site-packages/elastalert-0.2.1-py3.6.egg/elastalert/test_rule.py", line 445, in main
test_instance.run_rule_test()
File "/opt/python3/lib/python3.6/site-packages/elastalert-0.2.1-py3.6.egg/elastalert/test_rule.py", line 437, in run_rule_test
self.run_elastalert(rule_yaml, conf, args)
File "/opt/python3/lib/python3.6/site-packages/elastalert-0.2.1-py3.6.egg/elastalert/test_rule.py", line 318, in run_elastalert
client.run_rule(rule, endtime, starttime)
File "/opt/python3/lib/python3.6/site-packages/elastalert-0.2.1-py3.6.egg/elastalert/elastalert.py", line 905, in run_rule
if not self.run_query(rule, rule['starttime'], endtime):
File "/opt/python3/lib/python3.6/site-packages/elastalert-0.2.1-py3.6.egg/elastalert/elastalert.py", line 634, in run_query
data = self.get_hits(rule, start, end, index, scroll)
File "/opt/python3/lib/python3.6/site-packages/elastalert-0.2.1-py3.6.egg/elastalert/elastalert.py", line 385, in get_hits
**extra_args
File "/opt/python3/lib/python3.6/site-packages/elasticsearch/client/utils.py", line 84, in _wrapped
return func(*args, params=params, **kwargs)
TypeError: search() got an unexpected keyword argument '_source_include'
2 个回复
ld320321
赞同来自:
xm110224 - 运维人员
赞同来自: