疲劳是最舒适的枕头,努力工作吧。

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

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

[root@node3 elastalert]# elastalert-test-rule --config config.yaml example_rules/example_frequency.yaml 
INFO:elastalert:Note: In debug mode, alerts will be logged to console but NOT actually sent.
            To send them but remain verbose, use --verbose instead.
Didn't get any results.
INFO:elastalert:Note: In debug mode, alerts will be logged to console but NOT actually sent.
                To send them but remain verbose, use --verbose instead.
1 rules loaded
INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts
Traceback (most recent call last):
  File "/usr/local/python/bin/elastalert-test-rule", line 11, in <module>
    load_entry_point('elastalert==0.2.1', 'console_scripts', 'elastalert-test-rule')()
  File "/usr/local/python/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 "/usr/local/python/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 "/usr/local/python/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 "/usr/local/python/lib/python3.6/site-packages/elastalert-0.2.1-py3.6.egg/elastalert/elastalert.py", line 888, in run_rule
    if not self.run_query(rule, rule['starttime'], tmp_endtime):
  File "/usr/local/python/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 "/usr/local/python/lib/python3.6/site-packages/elastalert-0.2.1-py3.6.egg/elastalert/elastalert.py", line 385, in get_hits
    **extra_args
  File "/usr/local/python/lib/python3.6/site-packages/elasticsearch-7.0.5-py3.6.egg/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
已邀请:

要回复问题请先登录注册