Error while using watcher

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
port: 587
user: AKIA
password: Axxxxxxx

Command to create watcher:

curl -XPUT '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]

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

Have you enabled dynamic scripting in your config?

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

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.