Creating Alert Notifications in Elasticsearch: A Comprehensive Guide to Slack Integration

Haydar Külekci
4 min readJul 4, 2023

I used many different tools to create an alert service for the logs. In Elasticsearch, you can easily create alerts and even send them to Slack. In this article, I will give you step by step explanation for creating an alert to send messages to the Slack channel. So, before creating alerts, we assume that we have already connected our APM or Fleet services or a filebeat connected to the Elasticsearch cluster. And we have a stream for the logs. In my case, I used filebeat directly to ingest nginx logs into our cluster. So, as a result, I have a data stream as filebeat-8.4.3 and there are the nginx logs inside the data stream. You can use the same way to create an alert for other indices. I will use Kibana UI to create alerts.

So, let’s begin …

Kibana has a couple of menus to start creating alerts. In this article, we will focus Observability> Alerts menu. This page will list the already created Alerts if you have already. So, on this page, you can use the “Manage Rules“ page to create a rule for Alerts.

Observability > Alerts Page

After jumping into the Manage Rules page, you can create a rule by using Create Rule button on the right top.

So, a popup will appear, and you need to provide a name and select a rule type. So, I picked up “Log…

--

--

Haydar Külekci

Elastic Certified Engineer - Open to new opportunities & seeking sponsorship for UK/Netherland relocation 🇳🇱🇬🇧 https://www.linkedin.com/in/hkulekci/