# How to create email connector in Kibana to alert a log?

**URL:** <https://discuss.elastic.co/t/how-to-create-email-connector-in-kibana-to-alert-a-log/288104>\
**Category:** Kibana\
**Created:** [November 1, 2021, 2:06am UTC](https://discuss.elastic.co/t/how-to-create-email-connector-in-kibana-to-alert-a-log/288104 "2021-11-01T02:06:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nhattanmai](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nhattanmai/32/82550_2.png) [@nhattanmai](https://discuss.elastic.co/u/nhattanmai)\
**Post date:** [November 1, 2021, 2:06am UTC](https://discuss.elastic.co/t/how-to-create-email-connector-in-kibana-to-alert-a-log/288104/1 "2021-11-01T02:06:41Z")

</div>

Dear all,  
I need create email connector to send email when a log has message match with keyword. Alert worked well, but I don't know how to setting email connector when following the guide:

> **[Email connector and action | Kibana Guide \[7.15\] | Elastic](https://www.elastic.co/guide/en/kibana/7.15/email-action-type.html)**

```auto
Preconfigured connector typeedit
 my-email:
   name: preconfigured-email-connector-type
   actionTypeId: .email
   config:
     from: testsender@test.com
     host: validhostname
     port: 8080
     secure: false
   secrets:
     user: testuser
     password: passwordkeystorevalue

```

Where can I insert the config (maybe kibana.yml?)  
Does everybody have a more detail guide to create email connector for gmail?  
Thank you!

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [November 1, 2021, 12:54pm UTC](https://discuss.elastic.co/t/how-to-create-email-connector-in-kibana-to-alert-a-log/288104/2 "2021-11-01T12:54:44Z")

</div>

That format is for preconfigured connectors that you can add in kibana.yml, but you can just create one directly from the Alerting UI. It lets you input all the details there.

---

<div class="post-metadata">

**Author:** ![nhattanmai](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nhattanmai/32/82550_2.png) [@nhattanmai](https://discuss.elastic.co/u/nhattanmai)\
**Post date:** [November 2, 2021, 7:11am UTC](https://discuss.elastic.co/t/how-to-create-email-connector-in-kibana-to-alert-a-log/288104/3 "2021-11-02T07:11:02Z")

</div>

Thanks for your help. I try create one directly from Web UI but I don't see where to put my password email.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/3/43fed0c55ee79ca1bb8f91ab8df29f3b1adf564e.png)  
Please help me!

---

<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:** [November 30, 2021, 7:11am UTC](https://discuss.elastic.co/t/how-to-create-email-connector-in-kibana-to-alert-a-log/288104/4 "2021-11-30T07:11:29Z")

</div>

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