# Want to configure email in kibana

**URL:** <https://discuss.elastic.co/t/want-to-configure-email-in-kibana/246675>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [August 27, 2020, 6:19pm UTC](https://discuss.elastic.co/t/want-to-configure-email-in-kibana/246675 "2020-08-27T18:19:39Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![AKumar123](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@AKumar123](https://discuss.elastic.co/u/AKumar123)\
**Post date:** [August 27, 2020, 6:19pm UTC](https://discuss.elastic.co/t/want-to-configure-email-in-kibana/246675/1 "2020-08-27T18:19:39Z")

</div>

want to configure email in kibana so i can take the screen shot of Particular panel and able to send it to someone from kibana page.

---

<div class="post-metadata">

**Author:** ![AKumar123](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@AKumar123](https://discuss.elastic.co/u/AKumar123)\
**Post date:** [August 27, 2020, 7:21pm UTC](https://discuss.elastic.co/t/want-to-configure-email-in-kibana/246675/2 "2020-08-27T19:21:51Z")

</div>

I tried these settings in elasticsearch.yml:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/8/38280e977097fe03e269912967bc4560d698406a.png)

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [August 28, 2020, 4:55am UTC](https://discuss.elastic.co/t/want-to-configure-email-in-kibana/246675/3 "2020-08-28T04:55:13Z")

</div>

There have been few discuss posts around these. Please refer:

> [@Configuring email server in yml file](https://discuss.elastic.co/t/configuring-email-server-in-yml-file/145194):
>
> Hi Team, I am new to Kibana/ES. I want to configure an e-mail server in elasticsearch.yml file so that I can send alert e-mails based on messages send the logs. How can I do this through the Kibana/ES UI? Thanks, Mark

official documentation:

> **[Watcher email action | Elasticsearch Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/actions-email.html)**

Thanks  
Rashmi

---

<div class="post-metadata">

**Author:** ![AKumar123](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@AKumar123](https://discuss.elastic.co/u/AKumar123)\
**Post date:** [August 28, 2020, 7:54am UTC](https://discuss.elastic.co/t/want-to-configure-email-in-kibana/246675/4 "2020-08-28T07:54:11Z")

</div>

I tried these some thing i am missing here.  
Can you please send proper query for YML file.

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [August 28, 2020, 3:17pm UTC](https://discuss.elastic.co/t/want-to-configure-email-in-kibana/246675/5 "2020-08-28T15:17:22Z")

</div>

```auto
"actions" : {
  "send_email" : { 
    "email" : { 
      "to" : "username@example.org", 
      "subject" : "Watcher Notification", 
      "body" : "{{ctx.payload.hits.total}} error logs found" 
    }
  }
}

```

- is your email setting right ?
- is the port open ?
- do you have any proxy in front ?
- error logs would be helpful

this is hard to tell without any error message. Any more information available.  
see [https://www.elastic.co/guide/en/elasticsearch/reference/7.4/actions-email.html#gmail](https://www.elastic.co/guide/en/elasticsearch/reference/7.4/actions-email.html#gmail)

what do the logs say ?

Thanks  
Rashmi

---

<div class="post-metadata">

**Author:** ![adam.klein](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@adam.klein](https://discuss.elastic.co/u/adam.klein)\
**Post date:** [August 28, 2020, 4:00pm UTC](https://discuss.elastic.co/t/want-to-configure-email-in-kibana/246675/6 "2020-08-28T16:00:56Z")

</div>

Look up Kibana email configuration. For exchange / outlook, do this:

```auto
    PUT /_cluster/settings
    {
      "persistent": {
        "xpack.notification.email.account.exchange_account": {
            "profile": "outlook",
            "email_defaults": {
              "from": "[YOUR_FROM_EMAIL]"
            },
            "smtp": {
                "auth": [FALSE_UNLESS_YOU_ENABLE_EMAIL_AUTH],
                "starttls.enable": [FALSE_UNLESS_YOU_ENABLE_TLS],
                "host": "[YOUR_MAIL_RELAY]",
                "port": [YOUR_MAIL_RELAY_PORT]
            }
        }
      }
    }

```

---

<div class="post-metadata">

**Author:** ![AKumar123](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@AKumar123](https://discuss.elastic.co/u/AKumar123)\
**Post date:** [August 28, 2020, 9:10pm UTC](https://discuss.elastic.co/t/want-to-configure-email-in-kibana/246675/7 "2020-08-28T21:10:41Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/8/7/876d0f4b6b15e6a48ba3c36f0e3aa292135354f6.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/8/98cc9d0d2ec160e6a6fd0c17c208faabb30eb77a.png)

Hello Adam,

i want to do this through YML File configuration.Is it possible with this query.I am new in Kibana so getting errors.

---

<div class="post-metadata">

**Author:** ![AKumar123](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@AKumar123](https://discuss.elastic.co/u/AKumar123)\
**Post date:** [August 28, 2020, 9:16pm UTC](https://discuss.elastic.co/t/want-to-configure-email-in-kibana/246675/8 "2020-08-28T21:16:00Z")

</div>

I want to do it through yml file.I dont know any other ways.

If i paste this in yml file i am getting errors.I have done one step successfuly

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/b/7b61cd03f5e5b69c3443ec33d214efc504bcb872.png)

But other steps i am facing issues how to do that in yml file.

---

<div class="post-metadata">

**Author:** ![AKumar123](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@AKumar123](https://discuss.elastic.co/u/AKumar123)\
**Post date:** [August 28, 2020, 9:42pm UTC](https://discuss.elastic.co/t/want-to-configure-email-in-kibana/246675/9 "2020-08-28T21:42:10Z")

</div>

I tried this as well after that getting erros in elastic and kibana console:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/7/d713ff580b6abb9a21c8ae617d8c872e7bfa8853.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/5/656bc9d60a376455c4ad3bf37e60bf1964a619a3.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/9/89597579fdf699db3cd6962d40fcd27bea4fbdc5.png)

---

<div class="post-metadata">

**Author:** ![AKumar123](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@AKumar123](https://discuss.elastic.co/u/AKumar123)\
**Post date:** [August 29, 2020, 4:36pm UTC](https://discuss.elastic.co/t/want-to-configure-email-in-kibana/246675/10 "2020-08-29T16:36:05Z")

</div>

Please can you help me out from this Email configuration.

---

<div class="post-metadata">

**Author:** ![AKumar123](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@AKumar123](https://discuss.elastic.co/u/AKumar123)\
**Post date:** [August 29, 2020, 5:37pm UTC](https://discuss.elastic.co/t/want-to-configure-email-in-kibana/246675/11 "2020-08-29T17:37:15Z")

</div>

1)I am facing this Issue while testing Mail through watcher:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/8/58dfacd33b82dd7ab5c8ad2f8921aa844bcc48cc.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/e/2eb04fd2fa0cffd74b6058f051d908e2d8277469.png)

2)This is yml configuration:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/2/52880b4c8c5220b5ad2e5db3fa4fd05a6f7764d8.png)  
3)Secure Password:

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

For the Email Configuration i have done 2 and 3 steps.Is there any more thing required.

---

<div class="post-metadata">

**Author:** ![AKumar123](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@AKumar123](https://discuss.elastic.co/u/AKumar123)\
**Post date:** [August 29, 2020, 8:52pm UTC](https://discuss.elastic.co/t/want-to-configure-email-in-kibana/246675/12 "2020-08-29T20:52:28Z")

</div>

I facing this issue now:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/d/dde9ba105539259481bd31030f164fc4940b23b3.png)  
I have enabled two step verification also.

---

<div class="post-metadata">

**Author:** ![AKumar123](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@AKumar123](https://discuss.elastic.co/u/AKumar123)\
**Post date:** [August 31, 2020, 10:23am UTC](https://discuss.elastic.co/t/want-to-configure-email-in-kibana/246675/13 "2020-08-31T10:23:49Z")

</div>

Please help if you know this issue:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/3/63e93fc126863c6646c5366d8c0d90dffd781047.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/f/1fe56e5b71938f23771f76eb6f650d6629f86fc0.png)

---

<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:** [September 28, 2020, 10:24am UTC](https://discuss.elastic.co/t/want-to-configure-email-in-kibana/246675/14 "2020-09-28T10:24:00Z")

</div>

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