RousselTMLEARNING

Article · OpenSearch: from discovery to expertise

Dashboards, alerting and observability

1. OpenSearch Dashboards #

Exploring and visualizing.

First steps #

  1. Create an index pattern (for example logs-app-*) choosing the time field.
  2. In Discover, search and filter your documents.
  3. Build visualizations, then assemble them into a dashboard.
  4. Open Dev Tools to try your queries.
Menus may vary by version. This part describes the console from the documentation: only the APIs of this course were run.

2. Alerting #

Monitors and triggers.

A monitor through the API #

A monitor runs a query at a regular interval; a trigger evaluates a condition on the result; an action notifies through a channel.

curl -sk -u 'admin:Str0ng!Passw0rd-2026' -H 'Content-Type: application/json' -X POST https://localhost:9200/_plugins/_alerting/monitors -d '{
  "type": "monitor",
  "name": "erreurs_logs",
  "monitor_type": "query_level_monitor",
  "enabled": true,
  "schedule": {"period": {"interval": 1, "unit": "MINUTES"}},
  "inputs": [{"search": {"indices": ["logs-app-*"],
    "query": {"size": 0, "query": {"term": {"level": "error"}}}}}],
  "triggers": [{"name": "au_moins_une_erreur", "severity": "2",
    "condition": {"script": {"source": "ctx.results[0].hits.total.value > 0", "lang": "painless"}},
    "actions": []}]
}'

Add an action once the channel is created in Notifications.

3. Observability #

Logs, traces and anomalies.

What the platform offers #

FeaturePurpose
Trace AnalyticsRequest paths and service map, from the indexes fed by Data Prepper
Event AnalyticsExplore events with PPL
Anomaly DetectionAutomatically detect deviations on a metric
Security AnalyticsDetection rules on security logs

📄 OpenSearch Dashboards, alerting and observability →

My progress

  • ⏱ Estimated time : ≈ 4 min

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

💬 Ask a question

Recommended Articles

Bonnes pratiques Grafana : dashboards, provisioning, performances et sécurité

Bonnes pratiques Grafana : conception de dashboards lisibles, variables, dashboards as code, prov...

Grafana Alloy: The importance of Self-Monitoring

Discover why and how to configure Grafana Alloy so that it monitors itself, collecting its own lo...

Grafana Alloy vs OpenTelemetry Collector: Which One Should You Choose?

A detailed comparison between Grafana Alloy and the OpenTelemetry Collector. Discover the strengt...

Prometheus recording rules: speeding up your queries and dashboards

Understand and master Prometheus recording rules: evaluation, naming convention, pitfalls (ratios...

Visualiser dans Kibana : Lens, dashboards et objets enregistrés

Construire des visualisations avec Lens, assembler des dashboards interactifs (filtres, contrôles...

Explorer ses données dans Discover : KQL, Lucene et ES|QL

Rechercher et analyser des logs dans Kibana Discover : filtres, KQL, syntaxe Lucene, et le langag...

Elastic Observability : logs, infrastructure, APM et synthétiques

Les fonctions d'Elastic Observability : exploration des logs, inventaire d'infrastructure avec El...

Observabilité sur Azure : Azure Monitor, Log Analytics, Application Insights, Prometheus et Grafana managés

Panorama complet de l'observabilité sur Azure : Azure Monitor (métriques, journaux et Log Analyti...

Superviser et protéger Azure : Monitor, Log Analytics, Defender, Key Vault et Backup

Exploiter Azure : Azure Monitor (métriques, journaux d'activité, alertes), Log Analytics et KQL, ...

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!