高峰只对攀登它而不是仰望它的人来说才有真正意义。

大神求助,我这测试ElastAlert规则老师出差报一下错误,有大神指导吗?()

Elasticsearch | 作者 zheniove | 发布于2019年09月23日 | 阅读数:2953

[root@localhost example_rules]# elastalert-test-rule --alert my_rule.yaml
Traceback (most recent call last):
File "/usr/local/bin/elastalert-test-rule", line 11, in <module>
load_entry_point('elastalert==0.2.1', 'console_scripts', 'elastalert-test-rule')()
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 561, in load_entry_point
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2631, in load_entry_point
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2291, in load
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2297, in resolve
File "/usr/local/lib/python2.7/site-packages/elastalert/test_rule.py", line 61
print('Invalid filter provided:', str(ea), file=sys.stderr)
^
SyntaxError: invalid syntax
已邀请:

要回复问题请先登录注册