GithubHelp home page GithubHelp logo

jzoe / elastalert-kibana-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bitsensor/elastalert-kibana-plugin

0.0 2.0 0.0 8.03 MB

ElastAlert Kibana Plugin

Home Page: https://bitsensor.io/blog/elastalert-kibana-plugin-centralized-logging-with-integrated-alerting

License: Other

JavaScript 60.10% HTML 20.65% CSS 19.25%

elastalert-kibana-plugin's Introduction

ElastAlert Kibana plugin

img

Installation from build

Kibana 4

./bin/kibana plugin -i elastalert -u https://git.bitsensor.io/front-end/elastalert-kibana-plugin/builds/artifacts/develop/raw/build/elastalert-latest.zip?job=build

Kibana 5

./bin/kibana-plugin install https://git.bitsensor.io/front-end/elastalert-kibana-plugin/builds/artifacts/kibana5/raw/artifact/elastalert-`pwd | grep -Po '(?<=kibana-)[^-]*'`-latest.zip?job=build

Kibana 5 (if you have renamed the kibana-5.x.x folder

./bin/kibana-plugin install https://git.bitsensor.io/front-end/elastalert-kibana-plugin/builds/artifacts/kibana5/raw/artifact/elastalert-5.x.x-latest.zip?job=build

Append to the config/kibana.yml file the host of ElastAlert server, if it is different than localhost. Typically the case if you are running on macOS.

elastalert.serverHost: docker.for.mac.localhost

Starting the ElastAlert server

Docker installation

The default configuration uses localhost as ES host. You will want to mount the volumes for configuration and rule files to keep them after container updates.

In order to do that conviniently, please do a git clone https://github.com/bitsensor/elastalert.git; cd elastalert

Bash

docker run -d -p 3030:3030 \
    -v `pwd`/config/elastalert.yaml:/opt/elastalert/config.yaml \
    -v `pwd`/config/config.json:/opt/elastalert-server/config/config.json \
    -v `pwd`/rules:/opt/elastalert/rules \
    -v `pwd`/rule_templates:/opt/elastalert/rule_templates \
    --net="host" \
    --name elastalert bitsensor/elastalert:latest

Fish

docker run -d -p 3030:3030 \
    -v (pwd)/config/elastalert.yaml:/opt/elastalert/config.yaml \
    -v (pwd)/config/config.json:/opt/elastalert-server/config/config.json \
    -v (pwd)/rules:/opt/elastalert/rules \
    -v (pwd)/rule_templates:/opt/elastalert/rule_templates \
    --net="host" \
    --name elastalert bitsensor/elastalert:latest

A more detailed description is available at the ElastAlert repository.

Building artifact from source

npm run build

Development

Branch strategy

The repository is split in a develop branch, targeted at Kibana 4 development, and a kibana5 branch. If changes are made in develop that should be applied to all kibana versions, make sure to pick that commit in both the develop as well as kibana5 branch.

Tests

Run the browser tests in a real web browser, or mocha.

npm run test:browser
npm run test:server

Kibana Plugin Development

See the kibana contributing guide for instructions setting up your development environment. Once you have completed that, use the following npm tasks within Kibana.

elastalert-kibana-plugin's People

Contributors

bdbdbdbd avatar

Watchers

 avatar  avatar

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.