Elastalert安装及使用

简介

报警方式

  • Email
  • JIRA
  • OpsGenie
  • Commands
  • HipChat
  • MS Teams
  • Slack
  • Telegram
  • AWS SNS
  • VictorOps
  • PagerDuty
  • Exotel
  • Twilio
  • Gitter

前置条件

  • Elasticsearch
  • Python 2.7
  • pip
  • python-pip python-dev libffi-dev libssl-dev

安装

安装

  • pip
    1
    pip install elastalert
  • github
    1
    git clone https://github.com/Yelp/elastalert.git

安装模块

1
2
pip install "setuptools>=11.3"
python setup.py install

elasticsearch-py

1
2
3
4
5
#Elasticsearch 5.0+:
pip install "elasticsearch>=5.0.0"

#Elasticsearch 2.X:
pip install "elasticsearch<3.0.0"

可能出现的问题

提示Could not find suitable distribution for Requirement.parse('thehive4py>=1.4.

1
pip install thehive4py

使用