The Open Distro for Elasticsearch Anomaly Detection plugin enables you to leverage Machine Learning based algorithms to automatically detect anomalies as your log data is ingested. Combined with Alerting, you can monitor your data in near real time and automatically send alert notifications . With an intuitive Kibana interface and a powerful API, it is easy to set up, tune, and monitor your anomaly detectors.
Anomaly detection is using Random Cut Forest (RCF) algorithm for detecting anomalous data points.
You should use anomaly detection kibana plugin with the same version of Open Distro Alerting kibana plugin. You can also create monitor based on anomaly detector. A scheduled monitor run checks the anomaly detection results regularly and collects anomalies to trigger alerts based on custom trigger conditions.
- We will continuously add new unit test cases, but we don't have 100% unit test coverage for now. This is a great area for developers from the community to contribute and help improve test coverage.
- Please see documentation links and GitHub issues for other details.
Please see our documentation.
-
Download Elasticsearch for the version that matches the Kibana version specified in package.json.
-
Download and install the appropriate Open Distro for Elasticsearch Anomaly Detection Kibana plugin.
-
Download the Kibana source code for the version specified in package.json you want to set up.
See the Kibana contributing guide for more instructions on setting up your development environment.
-
Change your node version to the version specified in
.node-version
inside the Kibana root directory. -
Create a
plugins
directory inside the Kibana source code directory, ifplugins
directory doesn't exist. -
Check out this package from version control into the
plugins
directory. -
Run
yarn kbn bootstrap
insidekibana/plugins/anomaly-detection-kibana-plugin
.
Ultimately, your directory structure should look like this:
.
├── kibana
│ └──plugins
│ └── anomaly-detection-kibana-plugin
To build the plugin's distributable zip simply run yarn build
.
Example output: ./build/opendistroAnomalyDetectionKibana-1.13.0.0.zip
-
yarn start
Starts Kibana and includes this plugin. Kibana will be available on
localhost:5601
. -
NODE_PATH=../../node_modules yarn test:jest
Runs the plugin tests.
-
yarn test:e2e
Start Kibana, wait for it to be available on
localhost:5601
, and runs end-to-end tests. -
yarn cy:run
Runs end-to-end tests on a currently running Kibana server. Defaults to run the tests on
localhost:5601
, although you can change this to run on any Kibana server with the commandyarn cy:run --config baseUrl=<your-custom-URL>
We welcome you to get involved in development, documentation, testing the anomaly detection plugin. See our CONTRIBUTING.md and join in.
Since this is a Kibana plugin, it can be useful to review the Kibana contributing guide alongside the documentation around Kibana plugins and plugin development.
This project has adopted an Open Source Code of Conduct.
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our vulnerability reporting page. Please do not create a public GitHub issue.
See the LICENSE file for our project's licensing. We will ask you to confirm the licensing of your contribution.
Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.