# Elastic 6.3.1 and configuring emails so Watcher can send emails rather than just exporting to the local log file

**URL:** https://discuss.elastic.co/t/elastic-6-3-1-and-configuring-emails-so-watcher-can-send-emails-rather-than-just-exporting-to-the-local-log-file/139050
**Category:** Elasticsearch
**Created:** [July 8, 2018, 11:25am UTC](https://discuss.elastic.co/t/elastic-6-3-1-and-configuring-emails-so-watcher-can-send-emails-rather-than-just-exporting-to-the-local-log-file/139050 "2018-07-08T11:25:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jamesl](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jamesl](https://discuss.elastic.co/u/jamesl)
#### Post date: [July 8, 2018, 11:25am UTC](https://discuss.elastic.co/t/elastic-6-3-1-and-configuring-emails-so-watcher-can-send-emails-rather-than-just-exporting-to-the-local-log-file/139050/1 "2018-07-08T11:25:33Z")

</div>

Hi. I am trying to setup email alerts for my watchers.  
I have the following setup in my /etc/elasticsearch/elasticsearch.yml file:

> xpack.notification.email.account: [elastic@domain.com](mailto:elastic@domain.com)  
> profile: gmail  
> smtp.auth: true  
> smtp.host: [smtp.gmail.com](http://smtp.gmail.com)  
> smtp.port: 587  
> smtp.user: [alerts@domain.com](mailto:alerts@domain.com)  
> smtp.password: apassword  
> smtp.starttls.enable: true  
> smtp.starttls.required: true

but when I go to restart elasticsearch I see this error message in the startup log and still my watcher shows email as disabled Email. Disabled. Configure elasticsearch.yml.

```
Suppressed: java.lang.IllegalArgumentException: unknown setting [profile] did you mean [pidfile]?
Suppressed: java.lang.IllegalArgumentException: unknown setting [smtp.user] please check that any required plugins are installed, or check the breaking changes documentation for removed settings
Suppressed: java.lang.IllegalArgumentException: unknown setting [smtp.starttls.required] please check that any required plugins are installed, or check the breaking changes documentation for removed settings
Suppressed: java.lang.IllegalArgumentException: unknown setting [smtp.starttls.enable] please check that any required plugins are installed, or check the breaking changes documentation for removed settings
Suppressed: java.lang.IllegalArgumentException: unknown setting [xpack.notification.email.account] did you mean any of [xpack.notification.email.default_account, xpack.notification.jira.default_account, xpack.notification.slack.default_account]?

```

Any help will be greatly appreciated!

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [July 8, 2018, 12:20pm UTC](https://discuss.elastic.co/t/elastic-6-3-1-and-configuring-emails-so-watcher-can-send-emails-rather-than-just-exporting-to-the-local-log-file/139050/2 "2018-07-08T12:20:03Z")

</div>

Hey,

is it possible that your indendation is wrong? Please show the exact configuration or a gist to prove this. See this documentation as an example [https://www.elastic.co/guide/en/elastic-stack-overview/6.3/actions-email.html#gmail](https://www.elastic.co/guide/en/elastic-stack-overview/6.3/actions-email.html#gmail)

--Alex

---

<div class="post-metadata">

### Author: ![jamesl](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jamesl](https://discuss.elastic.co/u/jamesl)
#### Post date: [July 8, 2018, 12:55pm UTC](https://discuss.elastic.co/t/elastic-6-3-1-and-configuring-emails-so-watcher-can-send-emails-rather-than-just-exporting-to-the-local-log-file/139050/3 "2018-07-08T12:55:44Z")

</div>

Ahh yes thanks.  
Went by this and all good now 🙂 Thanks.

I got my first watcher alert via email!

[https://www.elastic.co/guide/en/elastic-stack-overview/6.3/actions-email.html#gmail](https://www.elastic.co/guide/en/elastic-stack-overview/6.3/actions-email.html#gmail)

```
#
xpack.notification.email.account:
    gmail_account:
        profile: gmail
        smtp:
            auth: true
            starttls.enable: true
            host: smtp.gmail.com
            port: 587
            user: me@mydomain.com
            password: SomePassword
```

---

<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 5, 2018, 12:55pm UTC](https://discuss.elastic.co/t/elastic-6-3-1-and-configuring-emails-so-watcher-can-send-emails-rather-than-just-exporting-to-the-local-log-file/139050/4 "2018-08-05T12:55:46Z")

</div>

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