# How to create email alerts in kibana

**URL:** <https://discuss.elastic.co/t/how-to-create-email-alerts-in-kibana/338219>\
**Category:** Elasticsearch\
**Created:** [July 12, 2023, 12:45pm UTC](https://discuss.elastic.co/t/how-to-create-email-alerts-in-kibana/338219 "2023-07-12T12:45:29Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![kibana\_dev\_iko](https://avatars.discourse-cdn.com/v4/letter/k/8797f3/32.png) [@kibana\_dev\_iko](https://discuss.elastic.co/u/kibana_dev_iko)\
**Post date:** [July 12, 2023, 12:45pm UTC](https://discuss.elastic.co/t/how-to-create-email-alerts-in-kibana/338219/1 "2023-07-12T12:45:29Z")

</div>

how can i create email alert for logs in elasticsearch and how can i create connectors in kibana UI

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [July 13, 2023, 8:53am UTC](https://discuss.elastic.co/t/how-to-create-email-alerts-in-kibana/338219/2 "2023-07-13T08:53:13Z")

</div>

Hi @kibana_dev_iko,

Do you have a license, or are you using a free on-prem install?

If you have a licence, you can create alerts in the [Stack Management \> Rules](https://www.elastic.co/guide/en/kibana/current/create-and-manage-rules.html) using an Elasticsearch query and then use the [Email connector](https://www.elastic.co/guide/en/kibana/current/email-action-type.html). Email connectors do look to be platinum and above looking at the [subscription matrix](https://www.elastic.co/subscriptions).

Otherwise, if you don't have a license, we did have a similar question on Slack recently where we discussed an approach in [this blog](https://medium.com/bluekiri/kibana-mail-alerting-with-logstash-43fb9e4789f2) using Logstash and HTTP and mail plugins. It's more work to set up, but an option if you don't have the required license for the action.

Let us know how you get on.

---

<div class="post-metadata">

**Author:** ![kibana\_dev\_iko](https://avatars.discourse-cdn.com/v4/letter/k/8797f3/32.png) [@kibana\_dev\_iko](https://discuss.elastic.co/u/kibana_dev_iko)\
**Post date:** [July 17, 2023, 7:55am UTC](https://discuss.elastic.co/t/how-to-create-email-alerts-in-kibana/338219/3 "2023-07-17T07:55:42Z")

</div>

hi @carly.richmond ,yes i have a platinium licence but when i configure email connector i cant receive emails can you give me a guide to configure it thank you

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [July 17, 2023, 9:06am UTC](https://discuss.elastic.co/t/how-to-create-email-alerts-in-kibana/338219/4 "2023-07-17T09:06:55Z")

</div>

Hi @kibana_dev_iko,

The steps for setting up the connector are available [here in the documentation](https://www.elastic.co/guide/en/kibana/current/email-action-type.html). Do you get a success or failure when you test the connector configuration? Are there any errors in the Elastic log at all?

---

<div class="post-metadata">

**Author:** ![kibana\_dev\_iko](https://avatars.discourse-cdn.com/v4/letter/k/8797f3/32.png) [@kibana\_dev\_iko](https://discuss.elastic.co/u/kibana_dev_iko)\
**Post date:** [July 17, 2023, 9:35am UTC](https://discuss.elastic.co/t/how-to-create-email-alerts-in-kibana/338219/5 "2023-07-17T09:35:11Z")

</div>

@carly.richmond  
where i can found this page to test connector in kibana UI  
when i create an email connector thats what i have juste save there is no test button

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/2/a2b1413c8ef188b8a75a6656aebc1c465feedae7.png)

---

<div class="post-metadata">

**Author:** ![kibana\_dev\_iko](https://avatars.discourse-cdn.com/v4/letter/k/8797f3/32.png) [@kibana\_dev\_iko](https://discuss.elastic.co/u/kibana_dev_iko)\
**Post date:** [July 17, 2023, 12:51pm UTC](https://discuss.elastic.co/t/how-to-create-email-alerts-in-kibana/338219/6 "2023-07-17T12:51:27Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/a/5/a5c81fe93b43ea1c0b59588b3d1694cf7cf0fbf2.png)  
it shows me this error when i test it  
@carly.richmond can u help me

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [July 17, 2023, 2:27pm UTC](https://discuss.elastic.co/t/how-to-create-email-alerts-in-kibana/338219/7 "2023-07-17T14:27:54Z")

</div>

Hi @kibana_dev_iko,

Thanks for sharing the error. It looks like you are getting a timeout. Have you double checked your configuration? Which email service are you trying to connect to (gmail, Microsoft Exchange etc.)?

---

<div class="post-metadata">

**Author:** ![kibana\_dev\_iko](https://avatars.discourse-cdn.com/v4/letter/k/8797f3/32.png) [@kibana\_dev\_iko](https://discuss.elastic.co/u/kibana_dev_iko)\
**Post date:** [July 17, 2023, 2:33pm UTC](https://discuss.elastic.co/t/how-to-create-email-alerts-in-kibana/338219/8 "2023-07-17T14:33:32Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/3/e/3ec2c1f1bb8142812fa4e982c6285f1cf058de63.png)  
im using gmail

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [July 17, 2023, 3:28pm UTC](https://discuss.elastic.co/t/how-to-create-email-alerts-in-kibana/338219/9 "2023-07-17T15:28:09Z")

</div>

Ok, it might be due to your gmail configuration. Have you checked the section on [gmail integration](https://www.elastic.co/guide/en/kibana/current/email-action-type.html#gmail) and the references to the less secure and app password configurations to see if those changes are required?

---

<div class="post-metadata">

**Author:** ![kibana\_dev\_iko](https://avatars.discourse-cdn.com/v4/letter/k/8797f3/32.png) [@kibana\_dev\_iko](https://discuss.elastic.co/u/kibana_dev_iko)\
**Post date:** [July 18, 2023, 7:43am UTC](https://discuss.elastic.co/t/how-to-create-email-alerts-in-kibana/338219/10 "2023-07-18T07:43:45Z")

</div>

hello @carly.richmond  
i follow the configuration in this article using app password [Google app password for Kibana email connector | by Avarjana Panditha | Medium](https://avarjana.medium.com/google-app-password-for-kibana-email-connector-4858fab43f0)  
what do you think ? i made just configuration in kibana UI, should i add any more configuration in kibana yaml files?  
thank you

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [July 18, 2023, 9:19am UTC](https://discuss.elastic.co/t/how-to-create-email-alerts-in-kibana/338219/11 "2023-07-18T09:19:55Z")

</div>

Thanks for confirming @kibana_dev_iko. It looks like that Medium article covers setting up an app password for gmail. Are you still getting the gateway timeout issue?

Is there any errors or warnings in the Kibana logs at all?

---

<div class="post-metadata">

**Author:** ![kibana\_dev\_iko](https://avatars.discourse-cdn.com/v4/letter/k/8797f3/32.png) [@kibana\_dev\_iko](https://discuss.elastic.co/u/kibana_dev_iko)\
**Post date:** [July 18, 2023, 9:37am UTC](https://discuss.elastic.co/t/how-to-create-email-alerts-in-kibana/338219/12 "2023-07-18T09:37:00Z")

</div>

yeah i still have the same problem  
i work on a production elk

---

<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:** [August 15, 2023, 9:37am UTC](https://discuss.elastic.co/t/how-to-create-email-alerts-in-kibana/338219/13 "2023-08-15T09:37:47Z")

</div>

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