What you will learn in this TP
- Install the stack locally
- Load a dataset
- Write KQL queries
Introduction #
What you will learn in this section
- Install the stack locally
- Load a dataset
- Write KQL queries
Context. You are joining a team that uses the Elastic Stack. Before working on the real logs, you learn to search efficiently on a sample dataset.
Prerequisites: Docker, 4 GB of free RAM · Estimated time: 35 min
Search logs efficiently.Setup #
Guided steps, with their solutions.
1. Start the stack
Why? The official script sets up security and a trial licence: every feature is available for the labs.
Runstart-localand retrieve the password of theelasticuser.2. Load the sample data
Why? The “web logs” dataset contains realistic access logs over several weeks, with a data view and a dashboard.
Install it through the API (or from the Kibana home page).3. Discover the fields
Why? Knowing which fields are available is the prerequisite for any query.
Open Discover on theKibana Sample Data Logsdata view (last 7 days). What are the 5 most frequent source countries (geo.src)?4. KQL queries
Why? Each query answers a concrete operational question.
Find: (1) the 503 responses, (2) requests larger than 10,000 bytes coming from China, (3) downloads of.ziparchives except from Windows.5. Save and share
Why? A saved search becomes a dashboard component.
Save the search for 503 responses under the name “503 errors” with the columnshost,requestandclientip.
Difficulty level : ●●○○○ (2/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
Kibana: role, installation and first steps
What Kibana is in the Elastic suite, how to install it with Elasticsearch (start-local, Docker), ...
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...
OpenTelemetry traces in Elasticsearch and Kibana APM
Instrument applications with OpenTelemetry or EDOT SDKs, send traces to Elasticsearch, get Kibana...
Alerts, connectors and SLOs in Kibana
Create alert rules in Kibana (Elasticsearch query, ES|QL, custom threshold, logs), configure conn...
Kibana Maps and Canvas: geographic maps and presentations
Build maps with Kibana Maps (document, aggregation and choropleth layers, ES|QL) and dynamic pres...
Grafana vs Kibana: which visualization tool to choose?
Discover the fundamental differences between Grafana, the king of multi-source metrics, and Kiban...
Visualizing in Kibana: Lens, dashboards and saved objects
Build visualizations with Lens, assemble interactive dashboards (filters, controls, links), and m...
Kibana and Elastic Observability best practices
Checklist for running Kibana in production: versions, security, spaces and roles, versioned dashb...