Yelp / elastalert

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

elastalert-create-index problem | 2022 #3244

Closed ghost closed 2 years ago

ghost commented 2 years ago

Getting this error when I'm trying to use this command: elastalert-create-index

isg-team@isg-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 "/home/isg-team/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 3260, in def _initialize_master_working_set(): File "/home/isg-team/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 3234, in _call_aside f(*args, **kwargs) File "/home/isg-team/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 3272, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/home/isg-team/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 581, in _build_master ws.require(requires) File "/home/isg-team/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 909, in require needed = self.resolve(parse_requirements(requirements)) File "/home/isg-team/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 795, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'elastalert==0.2.4' distribution was not found and is required by the application

ghost commented 2 years ago

Using: Python 3.8.0 Ubuntu 18.04.6 LTS

nsano-rururu commented 2 years ago

try

pip install --upgrade setuptools
pip install --upgrade distribute
pip install --upgrade pip
nsano-rururu commented 2 years ago

Not compatible with python3.8

nsano-rururu commented 2 years ago

yelp/elastalert is unmaintained

nsano-rururu commented 2 years ago

Use yelp / elastalert only if you can self-solve

nsano-rururu commented 2 years ago

Please close

ghost commented 2 years ago

okay, so if it's not compatible with python3.8 and I'm using Ubuntu 18.04.6 LTS, Which Python and Elastalert Version would work properly??

nsano-rururu commented 2 years ago

I think it works with python 3.8, but the README says python 3.6. Please read the README and documentation yourself.

nsano-rururu commented 2 years ago

Please close

ghost commented 2 years ago

okay thanks

nsano-rururu commented 2 years ago

If you want something that also supports python 3.6 or later, consider using elastalert2. https://github.com/jertel/elastalert2