What you will learn in this TP
- Set retention and indexes
- Write a VRL function
- Receive an alert
Introduction #
What you will learn in this section
- Set retention and indexes
- Write a VRL function
- Receive an alert
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.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.
Difficulty level : ●●●○○ (3/5)
My progress
Sign in to track your progress and take notes. Sign in
Recommended Articles
Query DSL et agrégations avancées Elasticsearch, avec ES|QL
Écrire des requêtes Elasticsearch avancées : bool, filter et score, nested, function_score et per...
OpenSearch Dashboards, alerting and observability
Explore data in OpenSearch Dashboards, create alert monitors and discover Trace Analytics, Event ...
Stocker et interroger la télémétrie directement dans ClickHouse
Envoyer logs et traces dans ClickHouse avec l'exportateur OpenTelemetry, comprendre le schéma des...
Vector : sources, transforms, sinks et topologie
Les concepts de Vector (sources, transforms, sinks), la configuration YAML, les composants couran...
Installing OpenObserve and ingesting your first data
Install OpenObserve with Docker Compose or the binary, configure it with its ZO_* variables, send...
OpenObserve in production: best practices
Choose your deployment mode, organize streams, secure, back up and monitor OpenObserve in product...
Logs avancés avec OpenPipeline : traitement, masquage, buckets et rétention
Gérer les logs dans Dynatrace avec OpenPipeline : ingestion, routage, traitement DQL (parsing, en...
APM Datadog avancé : échantillonnage, rétention, profiler et Software Catalog
Aller plus loin avec l'APM Datadog : contrôle d'ingestion et échantillonnage, filtres de rétentio...
Logs dans Datadog : collecte, pipelines, index et maîtrise du volume
Collecter les logs avec l'agent, les structurer avec pipelines et processeurs (grok), utiliser fa...