# Enabling watcher

**URL:** <https://discuss.elastic.co/t/enabling-watcher/141695>\
**Category:** Elasticsearch\
**Created:** [July 26, 2018, 6:15am UTC](https://discuss.elastic.co/t/enabling-watcher/141695 "2018-07-26T06:15:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raghuveer\_SJ](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Raghuveer\_SJ](https://discuss.elastic.co/u/Raghuveer_SJ)\
**Post date:** [July 26, 2018, 6:15am UTC](https://discuss.elastic.co/t/enabling-watcher/141695/1 "2018-07-26T06:15:24Z")

</div>

I am using 6.3 version of ELK. Using the following configuration in elasticsearch.yml :

1. What is the username for elasticsearch ?
2. Can i set in yml like bootstrap.username=myname ?
3. I need to enable the email option with trial license to show a demo is it possible because if i add the configuration as mentioned below i see the configuration is not recognized message.

> action.auto\_create\_index: true  
> xpack.watcher.enabled: true  
> xpack.watcher.history.cleaner\_service.enabled: true  
> xpack.monitoring.enabled: true
> 
> xpack.notification.email.account:  
> gmail\_account:  
> profile: gmail  
> smtp:  
> auth: true  
> starttls.enable: true  
> host: [smtp.gmail.com](http://smtp.gmail.com)  
> port: 587  
> to: [raghu@gmail.com](mailto:raghu@gmail.com)  
> subject: "critical event spotted by ELK from : %{host}"  
> user: [raghuveer@gmail.com](mailto:raghuveer@gmail.com)  
> password:

So i see that x-pack is already there with this version and trying to start with trial license, getting following exception :

> org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: unknown setting [xpack.notification.email.account.gmail\_account.smtp.to] please check that any required plugins are installed, or check the breaking changes documentation for removed settings  
> at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:140) ~[elasticsearch-6.3.0.jar:6.3.0]  
> at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) ~[elasticsearch-6.3.0.jar:6.3.0]  
> at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.3.0.jar:6.3.0]  
> at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.3.0.jar:6.3.0]  
> at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.3.0.jar:6.3.0]  
> at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.3.0.jar:6.3.0]  
> at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) ~[elasticsearch-6.3.0.jar:6.3.0]  
> Caused by: java.lang.IllegalArgumentException: unknown setting [xpack.notification.email.account.gmail\_account.smtp.to] please check that any required plugins are installed, or check the breaking changes documentation for removed settings  
> at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:344) ~[elasticsearch-6.3.0.jar:6.3.0]  
> at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:308) ~[elasticsearch-6.3.0.jar:6.3.0]  
> at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:282) ~[elasticsearch-6.3.0.jar:6.3.0]  
> at org.elasticsearch.common.settings.SettingsModule.(SettingsModule.java:135) ~[elasticsearch-6.3.0.jar:6.3.0]  
> at org.elasticsearch.node.Node.(Node.java:339) ~[elasticsearch-6.3.0.jar:6.3.0]  
> at org.elasticsearch.node.Node.(Node.java:252) ~[elasticsearch-6.3.0.jar:6.3.0]  
> at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:213) ~[elasticsearch-6.3.0.jar:6.3.0]  
> at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:213) ~[elasticsearch-6.3.0.jar:6.3.0]  
> at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) ~[elasticsearch-6.3.0.jar:6.3.0]  
> at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.3.0.jar:6.3.0]  
> ... 6 more

---

<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 23, 2018, 6:15am UTC](https://discuss.elastic.co/t/enabling-watcher/141695/2 "2018-08-23T06:15:26Z")

</div>

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