What you will learn in this TP
- Load a dataset
- Create a job and its datafeed
- Read anomalies
- Forecast and explain a spike
Introduction #
What you will learn in this section
- Load a dataset
- Create a job and its datafeed
- Read anomalies
- Forecast and explain a spike
Context. Site traffic varies by hour and day: a fixed threshold fires too often or not enough. You let machine learning learn the normal rhythm and flag deviations.
Prerequisites: Docker, 4 GB of free RAM, jq; trial licence (provided by start-local) · Estimated time: 40 min
Licence: this lab uses the 30-day trial (Platinum features) enabled automatically by start-local. On an existing cluster, enable it with POST _license/start_trial?acknowledge=true (once per major version); when it expires, the cluster falls back to Basic and jobs stop. The Data Visualizer stays free.
Hands-on #
Guided steps, with their solution.
1. The lab
Why? start-local starts Elasticsearch and Kibana with a 30-day trial licence, required for machine learning.
2. The data
Load the Kibana "web logs" sample dataset.
3. The job and datafeed
Why? The
countdetector models request volume per 15-minute bucket;geo.srcis an influencer to explain deviations.4. Read the anomalies
List the strongest anomalies, then open Anomaly Explorer in Kibana (Machine Learning › Anomaly Detection).
5. Forecast and explain
Run a 24-hour forecast, then use Log rate analysis (Machine Learning › AIOps Labs) on a spike in the dataset.
Difficulty level : ●●●○○ (3/5)
My progress
Sign in to track your progress and take notes. Sign in
💬 Questions about this lesson
No questions yet: be the first to ask for help or share your configuration.
Recommended Articles
Machine learning in Elastic: anomaly detection and AIOps
Automatically detect abnormal behaviour: anomaly detection jobs, datafeeds, detectors, influencer...
Elastic Security: SIEM, detection rules and investigation
Use Elastic Security as a SIEM: ECS data sources, detection rule types (query, EQL, ES|QL, thresh...
Grafana Assistant: AI at the service of observability
Discover Grafana Assistant, the artificial intelligence integrated into Grafana Cloud. Learn how ...
Elastic Observability: logs, infrastructure, APM and synthetics
Elastic Observability features: log exploration, infrastructure inventory with Elastic Agent and ...
Exploring data in Discover: KQL, Lucene and ES|QL
Search and analyze logs in Kibana Discover: filters, KQL, Lucene syntax, and the ES|QL language t...
Elastic path project: centralising and using logs
The validation project of the "Elastic Stack mastery" path: Elastic Agent and Fleet, Logstash, El...
Kibana and Elastic Observability best practices
Checklist for running Kibana in production: versions, security, spaces and roles, versioned dashb...
Advanced Davis AI: anomaly detection, causal, predictive and generative AI
Understand Davis AI: static thresholds, auto-adaptive and seasonal baselines, causal analysis and...
Monitors, SLOs, dashboards and Datadog as code
Create effective monitors (metrics, logs, APM, composites, anomalies), SLOs, dashboards, and mana...