Book Image

Machine Learning with the Elastic Stack

By : Rich Collier, Bahaaldine Azarmi
Book Image

Machine Learning with the Elastic Stack

By: Rich Collier, Bahaaldine Azarmi

Overview of this book

Machine Learning with the Elastic Stack is a comprehensive overview of the embedded commercial features of anomaly detection and forecasting. The book starts with installing and setting up Elastic Stack. You will perform time series analysis on varied kinds of data, such as log files, network flows, application metrics, and financial data. As you progress through the chapters, you will deploy machine learning within the Elastic Stack for logging, security, and metrics. In the concluding chapters, you will see how machine learning jobs can be automatically distributed and managed across the Elasticsearch cluster and made resilient to failure. By the end of this book, you will understand the performance aspects of incorporating machine learning within the Elastic ecosystem and create anomaly detection jobs and view results from Kibana directly.
Table of Contents (12 chapters)

Alerts from the Machine Learning UI in Kibana

In this section, we will go through several Alerting techniques, but we should first start with the simplest method and later move up in complexity. The first method of getting an alert tied to your ML job is to use the built-in alert wizard in the Machine Learning UI. There are two places to invoke this wizard:

  • After clicking the Create new job button in one of the job creation wizards (Single metric job, Multi metric job, Population job, and so on)
  • When starting a previously stopped datafeed in the ML job listing page, as shown in the following screenshot:

In either case, the option to create an alert (a watch) via the UI is only available when the ML job is set to run in Continue job in real time, meaning that the job will be scheduled to run continually (otherwise, Alerting really doesn't make sense). The UI only asks...