Code Monkey home page Code Monkey logo

elastalert_kafka's Introduction

elastalert_kafka

Kafka alert plugin for Elastalert


Quick Introduction

This is an Kafka Alert Plugin of Elastalert, which means the alert generated from Elastalert will be sent to the specific Kafka topic. This plugin is based on multiple Python libraries, which requires you to install them manually before using.

Installation

  1. You need confluent_kafka library. You can obtain from here: https://github.com/confluentinc/confluent-kafka-python. You will need librdkafka library for installing this Python library.
  2. Git Clone this project: git clone https://github.com/windhamwong/elastalert_kafka.git
  3. Copy elastalert_modules/kafkaAlert.py into the folder elastalert_modules under Elastalert folder. (If you can't find this folder under Elastalert, simply just copy the folder elastalert_modules/ into Elastalert instead.
  4. ...Guess what? Profit!

Usage

  1. You need to specify the path of this library in your rule.
alert:
  - "elastalert_modules.kafkaAlert.KafkaAlerter"
  1. Configure the Kafka info.
# Kafka server
kafka_brokers: "localhost:9091"
# Kafka producer name in Zookeeper
kafka_groupID: "elastalert"
# Kafka topic
kafka_topic: "elastalert-alert"

2b. Multiple Kafka topics (Untested)

alert:
    - "elastalert_modules.kafkaAlert.KafkaAlerter"
	- kafka_brokers: "localhost:9091"
	- kafka_groupID: "elastalert"
	- kafka_topic: "elastalert-alert"

Example

You can see the example rule under rules.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.