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=buildKibana 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=buildKibana 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=buildAppend 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
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
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:latestdocker 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:latestA more detailed description is available at the ElastAlert repository.
npm run buildThe 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.
Run the browser tests in a real web browser, or mocha.
npm run test:browser
npm run test:serverSee the kibana contributing guide for instructions setting up your development environment. Once you have completed that, use the following npm tasks within Kibana.
