Yelp / elastalert

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

ElastAlert Offline Installation #2013

Open miguelvlc opened 5 years ago

miguelvlc commented 5 years ago

Hey guys,

I'm having a lot of troubles trying to get ElastAlert working in my RedHat OS. I don't have Internet connection in this machine, so I really don't know any way of setting up ElastAlert. Every time i do "sudo python setup.py install" it waits until it recognizes the required packages... Obviously since i don't have any Internet connection it times out and doesn't install ElastAlert...

I created a directory inside elastalert-master where I had all the required packages installed, but at that time it doesn't recognizes as available... If I do: "pip install cffi" (for example), the system recognizes and outputs its location: /usr/lib/python27....

Any work around that I can do in order to use ElastAlert? I was really hyped about the possibilities of this program, but I can't get it to work.

Any help is much appreciated!!! Thanks!!

alankis commented 5 years ago

I believe that this is not related to the ElastAlert installation specific, but you should be able to install it using something like as there is a requirements.txt file.

pip download -r requirements.txt -d "some_directory_with_dependencies"

Then, tar it, untar on the target machine and then doing something like this:

pip install * -f ./ --no-index inside the untared directory.

More information can be found on official pip install documentation.