Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elastalert is throwing Syntax error while testing alert #207

Open
abhispandey12 opened this issue Jun 20, 2022 · 0 comments
Open

Elastalert is throwing Syntax error while testing alert #207

abhispandey12 opened this issue Jun 20, 2022 · 0 comments

Comments

@abhispandey12
Copy link

Hi,
When I am trying to test my elastalert rule, its throwing SyntaxError: invalid syntax. Below are the error I'm getting

Traceback (most recent call last): File "/usr/local/bin/elastalert-test-rule", line 33, in <module> sys.exit(load_entry_point('elastalert==0.2.0b2', 'console_scripts', 'elastalert-test-rule')()) File "/usr/local/bin/elastalert-test-rule", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/local/lib/python3.5/dist-packages/importlib_metadata/__init__.py", line 105, in load module = import_module(match.group('module')) File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 986, in _gcd_import File "<frozen importlib._bootstrap>", line 969, in _find_and_load File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 673, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 665, in exec_module File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed File "/usr/local/lib/python3.5/dist-packages/elastalert/test_rule.py", line 15, in <module> from elastalert.config import load_conf File "/usr/local/lib/python3.5/dist-packages/elastalert/config.py", line 8, in <module> from elastalert import loaders File "/usr/local/lib/python3.5/dist-packages/elastalert/loaders.py", line 33, in <module> import elastalert.alerters.thehive File "/usr/local/lib/python3.5/dist-packages/elastalert/alerters/thehive.py", line 113 req = f'{hive_host}:{hive_port}/api/alert' ^ SyntaxError: invalid syntax
Can any one please help me on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant