# Create alerts for logs ingestion in kibana

**URL:** https://discuss.elastic.co/t/create-alerts-for-logs-ingestion-in-kibana/295772
**Category:** Kibana
**Created:** [January 30, 2022, 7:06am UTC](https://discuss.elastic.co/t/create-alerts-for-logs-ingestion-in-kibana/295772 "2022-01-30T07:06:07Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![abhi.logs](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@abhi.logs](https://discuss.elastic.co/u/abhi.logs)
#### Post date: [January 30, 2022, 7:06am UTC](https://discuss.elastic.co/t/create-alerts-for-logs-ingestion-in-kibana/295772/1 "2022-01-30T07:06:07Z")

</div>

Hello,  
I'm trying to create an alert for log ingestion alert.  
ex- If we have one index pattern and logs stopped coming to the kibana for the last 5 min, Can we create an alert for this in kibana?

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [January 31, 2022, 1:33am UTC](https://discuss.elastic.co/t/create-alerts-for-logs-ingestion-in-kibana/295772/2 "2022-01-31T01:33:47Z")

</div>

Yes, you can use the [Index Threshold](https://www.elastic.co/guide/en/kibana/current/rule-type-index-threshold.html) rule type.

You would need to configure the alert to trigger if the number of documents for a period the time is below some specific number.

---

<div class="post-metadata">

### Author: ![abhi.logs](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@abhi.logs](https://discuss.elastic.co/u/abhi.logs)
#### Post date: [January 31, 2022, 9:55am UTC](https://discuss.elastic.co/t/create-alerts-for-logs-ingestion-in-kibana/295772/3 "2022-01-31T09:55:18Z")

</div>

@leandrojmp Thank you for the reply, How do I add a slack webhook URL for the alerts?

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [January 31, 2022, 12:45pm UTC](https://discuss.elastic.co/t/create-alerts-for-logs-ingestion-in-kibana/295772/4 "2022-01-31T12:45:24Z")

</div>

Do you a have a paid license or are you using the free basic license?

With the free basic license you can't add a slack webhook, the only actions available are the log one, which will log the alert in kibana's log and the index one, which will write the alert to a specific index.

If you have a paid license you just need to [follow the documentation](https://www.elastic.co/guide/en/kibana/current/slack-action-type.html#define-slack-ui) on how to create a Slack action.

---

<div class="post-metadata">

### Author: ![abhi.logs](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@abhi.logs](https://discuss.elastic.co/u/abhi.logs)
#### Post date: [February 4, 2022, 5:49am UTC](https://discuss.elastic.co/t/create-alerts-for-logs-ingestion-in-kibana/295772/5 "2022-02-04T05:49:56Z")

</div>

Thanks @leandrojmp,  
I am able to create alerts but when I received the alerts it look plain alert, I'm trying to customize messages like adding color code, In which language message should be written?

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [February 4, 2022, 1:40pm UTC](https://discuss.elastic.co/t/create-alerts-for-logs-ingestion-in-kibana/295772/6 "2022-02-04T13:40:21Z")

</div>

Which action are you using?

The alert is in plain text, any customization will be done on the destination of the action, if it allows it.

---

<div class="post-metadata">

### Author: ![abhi.logs](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@abhi.logs](https://discuss.elastic.co/u/abhi.logs)
#### Post date: [February 7, 2022, 4:16am UTC](https://discuss.elastic.co/t/create-alerts-for-logs-ingestion-in-kibana/295772/7 "2022-02-07T04:16:07Z")

</div>

Slack action I'm using.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 7, 2022, 4:17am UTC](https://discuss.elastic.co/t/create-alerts-for-logs-ingestion-in-kibana/295772/8 "2022-03-07T04:17:02Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
