What you will learn in this TP
- Set retention and indexes
- Write a VRL function
- Receive an alert
All steps and instructions are shown. Recommended for this lab: semi-guided
Introduction #
Context. Your prototype must become usable: keep logs 30 days, optimize searches and notify the team as soon as a payment fails.
Prerequisites: the first lab · Estimated time: 45 min
A complete alert chain.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.envfile read with${PASSWORD:?}in the Compose file, or a Docker secret read through a*_FILEvariable (for exampleGF_SECURITY_ADMIN_PASSWORD__FILEfor Grafana).
Setup #
Guided steps, with their solution.
1. Prepare the stack
Why? The receiver is a neighbouring container, so a private address: without this option OpenObserve refuses the destination. Do not reproduce in production.
Add anechocontainer and theZO_SKIP_SSRF_CHECKSoption, then ingest the events of the first lab again.2. Tune the stream
Why? These settings decide cost and speed.
Set 30 days of retention, full text onmessage, an index onserviceand a partition onlevel.3. Write a function
Why? VRL transforms events without touching the application.
Create themarque_gravefunction, then open it in the Functions menu and test it on an event.4. Create the alert chain
Why? The alert needs the destination, which needs the template: order matters.
Create the template, the destination, then the alert.5. Trigger the alert
Why? An alert never fired is an untested alert.
Send errors and read the logs of theechocontainer. Allow one to two minutes.
Validate your work
Check that each goal above is reached and that you get the result described in the introduction.
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
Exploring data in OpenObserve: SQL, PromQL and VRL
Search with SQL, query metrics with PromQL, optimize a stream (indexes, partitions, retention) an...
Alerts and pipelines in OpenObserve
Create a template, a destination and an alert, avoid the SSRF webhook block and process data with...
Transforming with VRL and testing Vector pipelines
The VRL language (Vector Remap Language): parsing logs (JSON, regex, syslog), error handling, enr...
Alerts, connectors and SLOs in Kibana
Create alert rules in Kibana (Elasticsearch query, ES|QL, custom threshold, logs), configure conn...
The observability trilemma: cost, completeness and performance, and how solutions resolve it
Understanding the observability trilemma (cost, data completeness, query performance), its three ...
Alerts and dashboards in ClickStack
Building charts and dashboards in ClickStack, creating alerts on a search or a chart, sending the...
Sending logs, metrics and traces to OpenObserve
OpenObserve receiving endpoints: JSON, bulk, OTLP with the OpenTelemetry Collector, Prometheus re...
Vector: transforms in detail (remap and VRL, route, filter, reduction and metrics)
Transform events in Vector: remap and the VRL language (parsing, enrichment, error handling), rou...
Telemetry in ClickHouse: schema, SQL, materialized views and retention
Telemetry in ClickHouse: otel_logs, otel_traces, otel_metrics_* and hyperdx_sessions tables, sort...