Machine learning features in X-Pack let you automate the task of detecting anomalies in time series data. In the first video in this tutorial series, we show you how to detect anomalies in single univariate time series via a single metric job type.
Download the example from GitHub to try this out on your machine.: https://github.com/elastic/examples/tree/master/Machine%20Learning/Getting%20started%20examples
You can watch this video also at the source.