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)

Forecasting use cases

In the context of Elastic ML, there are really just two, somewhat similar, use cases in which someone would use forecasting. These are as follows:

  • Value-focused: Extrapolating a time series into the future to understand a probable future value. This would be akin to answering questions such as: "how many widgets will I sell per day two months from now?"
  • Time-focused: Understanding the likely time at which an expected value is to be reached. This would be answering questions similar to: "do I expect to reach 80% utilization in the next week?"

The differences between these two use cases might not just be how the question is asked (how the data is searched), but also how you interpret the output. However, before we delve into a few examples of how to use the forecasting feature, let's take a little time to discuss how it works logistically...