What you will learn in this TP
- Create a Slack connector
- Create a detection with Watcher
- Create a Kibana rule
All steps and instructions are shown. Recommended for this lab: autonomous
Prerequisites #
Context. The team wants to be notified when an event repeats. You configure a Slack connector then a detection, the old way with Watcher then with Kibana rules.
Prerequisites: an Elasticsearch cluster and Kibana, a test Slack workspace · Estimated time: 45 min
You need an Elasticsearch cluster with a Kibana instance connected to it. If that is not yet the case, we invite you to complete the lab on installing Elasticsearch.You also need a Slack account. If you do not have one, you can replace it with another connector type such as Email, Teams, ...Connectors #
You need a key
Create an encryption key, because we are going to store sensitive connector access data
Creating a Slack webhook
Configure your Slack account to receive webhook messages.
Configuring a Slack connector
Create a Slack connector in your cluster with the information from the step above.
Does it work?
Test whether your connector is configured correctly.
Detection #
New index
We will create a new index named 'mon-troisieme-index'. In an advanced setup, you would rather reindex the documents, but that will be covered in another lab. This new index must have 3 shards and 2 replicas. The user field must be of type 'nested'. Once the index is created, add these documents to it:{ "@timestamp": "2026-12-01T02:35:04Z", "message" : "mon bulk", "id": 1, "user": { "office": "RousselTM", "number":125} } { "@timestamp": "2026-12-01T02:35:04Z", "message" : "mon bulk", "id": 2, "user": {"office": "rousseltm", "number":4258} } { "@timestamp": "2026-12-01T02:35:04Z", "message" : "mon bulk", "id": 3, "user": {"office": "Immo", "number":28215} } { "@timestamp": "2026-12-01T02:35:04Z", "message" : "mon bulk", "id": 4, "user": {"office": "Elastic", "number":2825} } { "@timestamp": "2026-12-01T02:35:04Z", "message" : "mon bulk", "id": 5, "user": {"office": "ElAStic", "number":2452} }The old-school way
Create a 'Watcher' that raises an alert if there are more than 3 messages containing 'bulk' and sends the notification to Slack
The modern way
Create a rule that raises an alert if there are more than 3 messages containing 'bulk' and sends the notification to Slack
Is the link working?
Add documents to the index so that it has more than 3 items and triggers the alert.
Validate your work
Check that each goal above is reached and that you get the result described in the introduction.
Difficulty level : ●●●●○ (4/5)
My progress
Sign in to track your progress and take notes. Sign in
💬 Recent discussions about this course
- Elasticsearch : supprimer automatiquement les logs de plus de 30 jours✓ solved · 1 reply(ies)
Ask a question about this lesson →See all discussions about this course
Course Glossary
RBAC (Role-Based Access Control)
An access control method where permissions are assigned to specific roles (e.g., admin, reader) rather than directly to individual users.
Authentication
The process of verifying the identity of a user or system (e.g., login/password, tokens, biometrics).
Authorization
The process that occurs after authentication to determine if the entity has the necessary rights and privileges to access a resource.
API Key
A unique alphanumeric code used to identify, authenticate, and authorize access to an Application Programming Interface (API).
Architecture
The overall structural design of an IT system, defining its various components, their relationships, and the principles guiding its evolution.
Repository
A centralized storage location. This can refer to a source code repository (e.g., Git) or an artifact and binary repository (e.g., Harbor, Nexus, Arti...
Elasticsearch
A distributed, RESTful search and analytics engine capable of addressing a growing number of use cases, built on Apache Lucene.
Recommended Articles
Elasticsearch distributed architecture: node roles, shards, replicas and allocation
Understand how Elasticsearch works as a distributed system: node roles, master nodes and quorum, ...
Elasticsearch monitoring and troubleshooting: health, unassigned shards, JVM, hot threads and slow logs
Diagnose an Elasticsearch cluster: cluster health and CAT APIs, unassigned shards and allocation ...
Elasticsearch performance and capacity planning: shards, heap, indexing and benchmarks
Size and optimize Elasticsearch: shard size and count, JVM heap, caches, indexing settings (refre...
Machine learning in Elastic: anomaly detection and AIOps
Automatically detect abnormal behaviour: anomaly detection jobs, datafeeds, detectors, influencer...
Elastic Security: SIEM, detection rules and investigation
Use Elastic Security as a SIEM: ECS data sources, detection rule types (query, EQL, ES|QL, thresh...
Automation and infrastructure as code for Elasticsearch: API, Terraform, Ansible and CI/CD
Automate Elasticsearch administration: REST API and clients, the elasticstack Terraform provider ...
Elasticsearch ingestion: Bulk API, ingest pipelines, enrich and reindex
Ingest and transform data in Elasticsearch: Bulk API, ingest pipelines and processors (grok, diss...
Understanding the Elastic Common Schema (ECS)
As always in our consulting engagements, we recommend that companies harmonise and standardise: k...
Advanced Elasticsearch security: TLS, certificates, API keys, FLS, DLS and audit
Secure Elasticsearch in depth: transport and HTTP TLS, certificate management with elasticsearch-...