沙师弟,师父的充电器掉了

elastalert启动命令python -m elastalert.elastalert --verbose --rule example_frequency.yaml报错

Elasticsearch | 作者 sunhaijun | 发布于2019年04月28日 | 阅读数:2790

elastalert/config.py:31: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
rule_schema = jsonschema.Draft4Validator(yaml.load(open(os.path.join(os.path.dirname(__file__), 'schema.yaml'))))
INFO:elastalert:Starting up
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/dev/software/elastalert/elastalert/elastalert.py", line 1929, in <module>
sys.exit(main(sys.argv[1:]))
File "/home/dev/software/elastalert/elastalert/elastalert.py", line 1925, in main
client.start()
File "/home/dev/software/elastalert/elastalert/elastalert.py", line 1106, in start
self.run_all_rules()
File "/home/dev/software/elastalert/elastalert/elastalert.py", line 1158, in run_all_rules
self.send_pending_alerts()
File "/home/dev/software/elastalert/elastalert/elastalert.py", line 1534, in send_pending_alerts
pending_alerts = self.find_recent_pending_alerts(self.alert_time_limit)
File "/home/dev/software/elastalert/elastalert/elastalert.py", line 1526, in find_recent_pending_alerts
size=1000)
File "/usr/lib/python2.7/site-packages/elasticsearch-7.0.0-py2.7.egg/elasticsearch/client/utils.py", line 84, in _wrapped
return func(*args, params=params, **kwargs)
TypeError: search() got an unexpected keyword argument 'doc_type'
已邀请:

bwcx

赞同来自:

解决了吗

zzr

赞同来自:

这个问题有后续吗?我的也遇到相同的问题

要回复问题请先登录注册