# Error while using watcher

**URL:** <https://discuss.elastic.co/t/error-while-using-watcher/27164>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [August 10, 2015, 10:45pm UTC](https://discuss.elastic.co/t/error-while-using-watcher/27164 "2015-08-10T22:45:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![niraj\_kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/niraj_kumar/32/4130_2.png) [@niraj\_kumar](https://discuss.elastic.co/u/niraj_kumar)\
**Post date:** [August 10, 2015, 10:45pm UTC](https://discuss.elastic.co/t/error-while-using-watcher/27164/1 "2015-08-10T22:45:12Z")

</div>

Hi team,

i just started using watcher and i see the following error.

[2015-08-10 22:33:46,520][WARN][index.mapper] [elk-prod-01-data03-elk-prod-01-data03] [admin] Type [login.do] contains a '.', it is recommended not to include it within a type name  
[2015-08-10 22:33:46,521][WARN][index.mapper] [elk-prod-01-data03-elk-prod-01-data03] [admin] Type [login.action] contains a '.', it is recommended not to include it within a type name  
[2015-08-10 22:33:56,066][WARN][index.mapper] [elk-prod-01-data03-elk-prod-01-data03] [cgi-bin] Type [php.cgi] contains a '.', it is recommended not to include it within a type name

My watcher SMTP config

watcher.actions.email.service.account:  
ses\_account:  
smtp:  
auth: true  
starttls.enable: true  
starttls.required: true  
host: [email-smtp.us-east-1.amazonaws.com](http://email-smtp.us-east-1.amazonaws.com)  
port: 587  
user: AKIA  
password: Axxxxxxx

Command to create watcher:

curl -XPUT '[http://localhost:9200/\_watcher/watch/cluster\_health\_watch](http://localhost:9200/_watcher/watch/cluster_health_watch)' -d '{  
"trigger" : {  
"schedule" : { "interval" : "10s" }  
},  
"input" : {  
"http" : {  
"request" : {  
"host" : "localhost",  
"port" : 9200,  
"path" : "/\_cluster/health"  
}  
}  
},  
"condition" : {  
"compare" : {  
"ctx.payload.status" : { "eq" : "red" }  
}  
},  
"actions" : {  
"send\_email" : {  
"email" : {  
"to" : "niraj.kumar3@example.com",  
"subject" : "Cluster Status Warning",  
"body" : "Cluster status is RED"  
}  
}  
}  
}'

Adding to it , when i view the watcher data in using the head plugin i see the below error too.

.watch\_history-2015.08.10  
watch\_record  
cluster\_health\_watch\_19-2015-08-10T20:43:51.019Z  
1  
cluster\_health\_watch  
failed  
http  
2015-08-10T20:43:51.019Z  
2015-08-10T20:43:50.642Z  
2015-08-10T20:43:51.019Z  
2  
failure  
ScriptException[dynamic scripting for [xmustache] disabled]  
.watch\_history-2015.08.10  
watch\_record  
cluster\_health\_watch\_20-2015-08-10T20:44:01.023Z  
1  
cluster\_health\_watch  
failed  
http  
2015-08-10T20:44:01.023Z  
2015-08-10T20:44:00.642Z  
2015-08-10T20:44:01.023Z  
0  
failure  
ScriptException[dynamic scripting for [xmustache] disabled]  
.watch\_history-2015.08.10  
watch\_record  
cluster\_health\_watch\_21-2015-08-10T20:44:11.026Z  
1  
cluster\_health\_watch  
failed  
http  
2015-08-10T20:44:11.026Z  
2015-08-10T20:44:10.642Z  
2015-08-10T20:44:11.026Z  
1  
failure  
ScriptException[dynamic scripting for [xmustache] disabled]  
.watch\_history-2015.08.10  
watch\_record  
cluster\_health\_watch\_13-2015-08-10T20:42:50.989Z  
1  
cluster\_health\_watch  
failed  
http  
2015-08-10T20:42:50.989Z  
2015-08-10T20:42:50.642Z  
2015-08-10T20:42:50.989Z  
1  
failure  
ScriptException[dynamic scripting for [xmustache] disabled]  
.watch\_history-2015.08.10  
watch\_record  
cluster\_health\_watch\_14-2015-08-10T20:43:00.993Z  
1  
cluster\_health\_watch  
failed  
http  
2015-08-10T20:43:00.993Z  
2015-08-10T20:43:00.642Z  
2015-08-10T20:43:00.993Z  
0  
failure  
ScriptException[dynamic scripting for [xmustache] disabled]  
.watch\_history-2015.08.10  
watch\_record  
cluster\_health\_watch\_15-2015-08-10T20:43:10.997Z  
1  
cluster\_health\_watch  
failed  
http  
2015-08-10T20:43:10.997Z  
2015-08-10T20:43:10.642Z  
2015-08-10T20:43:10.997Z  
0  
failure  
ScriptException[dynamic scripting for [xmustache] disabled]  
.watch\_history-2015.08.10  
watch\_record  
cluster\_health\_watch\_16-2015-08-10T20:43:21.001Z  
1  
cluster\_health\_watch  
failed  
http  
2015-08-10T20:43:21.001Z  
2015-08-10T20:43:20.642Z  
2015-08-10T20:43:21.001Z  
0  
failure  
ScriptException[dynamic scripting for [xmustache] disabled]  
.watch\_history-2015.08.10  
watch\_record  
cluster\_health\_watch\_17-2015-08-10T20:43:31.012Z  
1  
cluster\_health\_watch  
failed  
http  
2015-08-10T20:43:31.012Z  
2015-08-10T20:43:30.642Z  
2015-08-10T20:43:31.012Z  
1  
failure  
ScriptException[dynamic scripting for [xmustache] disabled]  
.watch\_history-2015.08.10  
watch\_record  
cluster\_health\_watch\_18-2015-08-10T20:43:41.015Z  
1  
cluster\_health\_watch  
failed  
http  
2015-08-10T20:43:41.015Z  
2015-08-10T20:43:40.642Z  
2015-08-10T20:43:41.015Z  
0  
failure  
ScriptException[dynamic scripting for [xmustache] disabled]  
.watch\_history-2015.08.10  
watch\_record  
cluster\_health\_watch\_1-2015-08-10T20:40:50.897Z  
1  
cluster\_health\_watch  
failed  
http  
2015-08-10T20:40:50.897Z  
2015-08-10T20:40:50.642Z  
2015-08-10T20:40:50.897Z  
0  
failure  
ScriptException[dynamic scripting for [xmustache] disabled]

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 11, 2015, 10:40am UTC](https://discuss.elastic.co/t/error-while-using-watcher/27164/2 "2015-08-11T10:40:24Z")

</div>

> [@niraj\_kumar](#):
>
> Type [login.do] contains a '.', it is recommended not to include it within a type name

This has nothing to do with watcher, it looks like you probably have a cluster that is open to the internet.

> [@niraj\_kumar](#):
>
> dynamic scripting for [xmustache] disabled

Have you enabled dynamic scripting in your config?

---

<div class="post-metadata">

**Author:** ![niraj\_kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/niraj_kumar/32/4130_2.png) [@niraj\_kumar](https://discuss.elastic.co/u/niraj_kumar)\
**Post date:** [August 11, 2015, 4:23pm UTC](https://discuss.elastic.co/t/error-while-using-watcher/27164/3 "2015-08-11T16:23:45Z")

</div>

How do i enable that. Sorry for the noob question.

---

<div class="post-metadata">

**Author:** ![niraj\_kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/niraj_kumar/32/4130_2.png) [@niraj\_kumar](https://discuss.elastic.co/u/niraj_kumar)\
**Post date:** [August 11, 2015, 5:19pm UTC](https://discuss.elastic.co/t/error-while-using-watcher/27164/4 "2015-08-11T17:19:44Z")

</div>

Hi,

I got this enabled but i am seeing another issue stating the email address is not verified. I know the email address been verified in amazon SES and it show the email address been verified in the console. What i am not sure is what is the to address when configuring email properties with Amazon SES.

---

<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:** [July 6, 2017, 1:49pm UTC](https://discuss.elastic.co/t/error-while-using-watcher/27164/5 "2017-07-06T13:49:01Z")

</div>


