RousselTMLEARNING

TP · OpenObserve: from discovery to expertise

Lab: Install OpenObserve and ingest your first logs

What you will learn in this TP
  • Deploy OpenObserve
  • Ingest JSON
  • Query with SQL
Mode :

All steps and instructions are shown. Recommended for this lab: guided

Introduction #

Context. Your team is looking for a log platform lighter than an Elasticsearch cluster. You build a prototype in a few minutes.

Prerequisites: Docker Compose, curl, jq  ·  Estimated time: 30 min

A platform ready to receive data.
Disposable environment: passwords are written in clear text to keep the lab simple. Outside a lab, keep image versions pinned and move secrets out of the file: an unversioned .env file read with ${PASSWORD:?} in the Compose file, or a Docker secret read through a *_FILE variable (for example GF_SECURITY_ADMIN_PASSWORD__FILE for Grafana).

Setup #

Guided steps, with their solution.

  1. 1. Start OpenObserve

    Why? A single container is enough: the product's main asset.

    Write the Compose file, start it and check /healthz.
  2. 2. Send events

    Why? No schema to declare: the stream is born at the first write.

    Send three events to the commandes stream, and read the response body.
  3. 3. Find them with SQL

    Why? The query always needs a time range, in microseconds.

    Compute the number of events and the average duration per service. Wait a few seconds if the result is empty.
  4. 4. Observe the transformations

    Why? These rules explain many queries returning nothing.

    Send [{"Level":"INFO","http":{"status":500}}] to an essai stream, then find it in the UI. What are the fields called now?

Validate your work

Check that each goal above is reached and that you get the result described in the introduction.

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

My progress

  • ⏱ Estimated time : ≈ 30 min

Sign in to track your progress and take notes. Sign in

⭐ Rate this lesson

5.0 initial rating from the teaching team

Sign in to rate this lesson →

💬 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

Installing OpenObserve and ingesting your first data

Install OpenObserve with Docker Compose or the binary, configure it with its ZO_* variables, send...

Sending logs, metrics and traces to OpenObserve

OpenObserve receiving endpoints: JSON, bulk, OTLP with the OpenTelemetry Collector, Prometheus re...

Exploring data in OpenObserve: SQL, PromQL and VRL

Search with SQL, query metrics with PromQL, optimize a stream (indexes, partitions, retention) an...

OpenObserve: architecture and concepts

Understanding OpenObserve: Parquet storage, deployment modes, roles (router, ingester, querier, c...

OpenObserve in production: best practices

Choose your deployment mode, organize streams, secure, back up and monitor OpenObserve in product...

Installing Phoenix and tracing your first LLM application

Install Arize Phoenix (pip, Docker), send your first OpenInference traces from an OpenAI applicat...

Alerts and pipelines in OpenObserve

Create a template, a destination and an alert, avoid the SSRF webhook block and process data with...

Installing Zabbix and monitoring your first host

Install Zabbix with Docker Compose (server, PostgreSQL, web interface), install agent 2 on a Linu...

Elasticsearch ingestion: Bulk API, ingest pipelines, enrich and reindex

Ingest and transform data in Elasticsearch: Bulk API, ingest pipelines and processors (grok, diss...

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!