不为失败找理由,要为成功找方法。

测试elastalert 出现报错,这个是什么原因呀!求大神解答

Elasticsearch | 作者 zheniove | 发布于2019年10月18日 | 阅读数:2052

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'
1571283740(1).png
已邀请:

ld320321

赞同来自:

解决了吗
 

xm110224 - 运维人员

赞同来自:

同求

要回复问题请先登录注册