Yelp / elastalert

Easy & Flexible Alerting With ElasticSearch
https://elastalert.readthedocs.org
Apache License 2.0
8k stars 1.73k forks source link

New member #3232

Open BloodRose162 opened 2 years ago

BloodRose162 commented 2 years ago

Hi. I am having problems creating elastalert in Elasticsearch. When I use the elastalert-create-index command it gives me the error: root@elk-virtual-machine:~/elastalert# elastalert-create-index Traceback (most recent call last): File "/usr/local/bin/elastalert-create-index", line 6, in from pkg_resources import load_entry_point File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 3251, in @_call_aside File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 3235, in _call_aside f(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 3264, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 583, in _build_master ws.require(requires) File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 900, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 786, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'jsonschema>=3.0.2' distribution was not found and is required by elastalert root@elk-virtual-machine:~/elastalert# python -m pip install urllib3[brotli] /usr/bin/python: No module named pip

himaniraghav3 commented 2 years ago

Hi! Looks like jsonschema>=3.0.2 was not installed during the setup. Try a pip install for the same.

nsano-rururu commented 2 years ago

If you don't need help, use elastalert. Use elastalert2 if you need help.