RousselTMLEARNING

TP · Kibana and Elastic Observability: from discovery to expertise

Lab: Install Kibana and explore logs with KQL

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. 1. Start the stack

    Why? The official script sets up security and a trial licence: every feature is available for the labs.

    Run start-local and retrieve the password of the elastic user.
  2. 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. 3. Discover the fields

    Why? Knowing which fields are available is the prerequisite for any query.

    Open Discover on the Kibana Sample Data Logs data view (last 7 days). What are the 5 most frequent source countries (geo.src)?
  4. 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 .zip archives except from Windows.
  5. 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 columns host, request and clientip.

Difficulty level : ●●○○○ (2/5)

My progress

  • ⏱ Estimated time : ≈ 35 min

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.

Ask a question about this lesson →

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...

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!