# Watcher and kibana

**URL:** <https://discuss.elastic.co/t/watcher-and-kibana/164146>\
**Category:** Elasticsearch\
**Created:** [January 14, 2019, 1:36pm UTC](https://discuss.elastic.co/t/watcher-and-kibana/164146 "2019-01-14T13:36:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![li\_jessen2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/li_jessen2016/32/38817_2.png) [@li\_jessen2016](https://discuss.elastic.co/u/li_jessen2016)\
**Post date:** [January 14, 2019, 1:36pm UTC](https://discuss.elastic.co/t/watcher-and-kibana/164146/1 "2019-01-14T13:36:52Z")

</div>

If I uses a trail license and enables watcher of X-pack, do I need to install kibana? Since from the log, I see the following error messages when I have no kibana installed:  
at org.elasticsearch.painless.PainlessScript$Script.execute(ctx.vars.email\_recipient = (ctx.payload.kibana\_settings.hits.total \> 0 && ctx.payload.kibana\_settings.hits.hits[0].\_source.kibana\_settings.xpack != null) ? ctx.payload.kibana\_settings.hits.hits[0].\_source.kibana\_settings.xpack.default\_admin\_email : null;ct ...:1152) ~[?:?]

---

<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:** [January 15, 2019, 9:51am UTC](https://discuss.elastic.co/t/watcher-and-kibana/164146/2 "2019-01-15T09:51:30Z")

</div>

no you do not. This is an error message in an internal watch, which you can safely ignore.

Do you mind sharing the exception so we can make sure it does not flood your logs?

--Alex

---

<div class="post-metadata">

**Author:** ![li\_jessen2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/li_jessen2016/32/38817_2.png) [@li\_jessen2016](https://discuss.elastic.co/u/li_jessen2016)\
**Post date:** [January 16, 2019, 2:06pm UTC](https://discuss.elastic.co/t/watcher-and-kibana/164146/3 "2019-01-16T14:06:22Z")

</div>

I found that as long as I enable watcher the error appears. Why should I ignore it? Though I see that the process is still running and I can still get the right info by sending curl -X GET messages.  
The error messages are:  
ERROR][o.e.x.w.t.s.ExecutableScriptTransform] [hytera.l23556] failed to execute [script] transform for [OKX6rKBiQQ2UrTMBRuayqg\_elasticsearch\_cluster\_status\_ab5632f5-feab-4fa9-b6c2-75d55333e7ff-2019-01-16T13:59:30.504Z]  
org.elasticsearch.script.ScriptException: runtime error  
at org.elasticsearch.painless.PainlessScript.convertToScriptException(PainlessScript.java:94) ~[?:?]  
at org.elasticsearch.painless.PainlessScript$Script.execute(ctx.vars.email\_recipient = (ctx.payload.kibana\_settings.hits.total \> 0 && ctx.payload.kibana\_settings.hits.hits[0].\_source.kibana\_settings.xpack != null) ? ctx.payload.kibana\_settings.hits.hits[0].\_source.kibana\_settings.xpack.default\_admin\_email : null;ct ...:1152) ~[?:?]  
at org.elasticsearch.xpack.watcher.transform.script.ExecutableScriptTransform.doExecute(ExecutableScriptTransform.java:49) ~[x-pack-watcher-6.5.1.jar:6.5.1]  
at org.elasticsearch.xpack.watcher.transform.script.ExecutableScriptTransform.execute(ExecutableScriptTransform.java:38) ~[x-pack-watcher-6.5.1.jar:6.5.1]  
at org.elasticsearch.xpack.watcher.transform.script.ExecutableScriptTransform.execute(ExecutableScriptTransform.java:23) ~[x-pack-watcher-6.5.1.jar:6.5.1]  
at org.elasticsearch.xpack.watcher.execution.ExecutionService.executeInner(ExecutionService.java:444) ~[x-pack-watcher-6.5.1.jar:6.5.1]  
at org.elasticsearch.xpack.watcher.execution.ExecutionService.execute(ExecutionService.java:295) ~[x-pack-watcher-6.5.1.jar:6.5.1]  
at org.elasticsearch.xpack.watcher.execution.ExecutionService.lambda$executeAsync$5(ExecutionService.java:395) ~[x-pack-watcher-6.5.1.jar:6.5.1]  
at org.elasticsearch.xpack.watcher.execution.ExecutionService$WatchExecutionTask.run(ExecutionService.java:544) [x-pack-watcher-6.5.1.jar:6.5.1]  
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:624) [elasticsearch-6.5.1.jar:6.5.1]  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0\_191]  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0\_191]  
at java.lang.Thread.run(Thread.java:748) [?:1.8.0\_191]  
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0  
at java.util.ArrayList.rangeCheck(ArrayList.java:657) ~[?:1.8.0\_191]  
at java.util.ArrayList.get(ArrayList.java:433) ~[?:1.8.0\_191]  
at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627) ~[?:1.8.0\_191]  
at org.elasticsearch.painless.DefBootstrap$PIC.fallback(DefBootstrap.java:216) ~[?:?]  
at org.elasticsearch.painless.PainlessScript$Script.execute(ctx.vars.email\_recipient = (ctx.payload.kibana\_settings.hits.total \> 0 && ctx.payload.kibana\_settings.hits.hits[0].\_source.kibana\_settings.xpack != null) ? ctx.payload.kibana\_settings.hits.hits[0].\_source.kibana\_settings.xpack.default\_admin\_email : null;ct ...:429) ~[?:?]  
... 11 more

---

<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:** [January 17, 2019, 12:50pm UTC](https://discuss.elastic.co/t/watcher-and-kibana/164146/4 "2019-01-17T12:50:55Z")

</div>

just to rule out a few things. Have you done an upgrade or is this a fresh installation?

Regarding ignoring it: I meant, this will not affect anything you are doing. Still we should get to the bottom of this issue and fix. Whatever you are doing with watcher will not be a problem despite that error from a watch execution - that's what I wanted to say, sorry for the confusion 🙂

---

<div class="post-metadata">

**Author:** ![li\_jessen2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/li_jessen2016/32/38817_2.png) [@li\_jessen2016](https://discuss.elastic.co/u/li_jessen2016)\
**Post date:** [January 19, 2019, 1:17am UTC](https://discuss.elastic.co/t/watcher-and-kibana/164146/5 "2019-01-19T01:17:10Z")

</div>

This is a fresh installation and I just follow the steps of chapter - Setup Elasticsearch of online document Elasticsearch reference 6.5, till I found this error in configuring security.

---

<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:** [January 21, 2019, 1:33pm UTC](https://discuss.elastic.co/t/watcher-and-kibana/164146/6 "2019-01-21T13:33:13Z")

</div>

can you share the output of `GET _cat/indices` please? I do agree that this is a bug and needs to be fixed.

---

<div class="post-metadata">

**Author:** ![li\_jessen2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/li_jessen2016/32/38817_2.png) [@li\_jessen2016](https://discuss.elastic.co/u/li_jessen2016)\
**Post date:** [January 22, 2019, 7:54am UTC](https://discuss.elastic.co/t/watcher-and-kibana/164146/7 "2019-01-22T07:54:55Z")

</div>

This time no exception. The response is:

\< HTTP/1.1 200 OK  
\< content-type: text/plain; charset=UTF-8  
\< content-length: 1767  
\<  
green open .monitoring-es-6-2019.01.14 xj9q0ZfJTwOAc94MGdGd8g 5 0 1630 67 1.5mb 1.5mb  
green open .watcher-history-9-2019.01.14 h0DlvC0rTRquT3Ss2iKfiw 1 0 1072 0 1.2mb 1.2mb  
green open .watcher-history-9-2019.01.22 JKHCY9uTT-6hO\_-FjFLdMA 1 0 20 0 100.4kb 100.4kb  
green open .watcher-history-9-2019.01.16 7WqoOQluTG251MIttqjuww 1 0 536 0 812.2kb 812.2kb  
green open .security-6 fHmukzE9QuO9BrbTQW7hMw 1 0 6 0 19.5kb 19.5kb  
yellow open customer rkOXvMjlRtemUtYP3Whf\_Q 5 1 0 0 1.2kb 1.2kb  
green open .monitoring-es-6-2019.01.22 40W7Gt4hQcCOKC022Q9MTQ 5 0 1090 56 1.3mb 1.3mb  
green open .monitoring-es-6-2019.01.16 ROwwI\_Y3RiOMZItsw6kgvw 5 0 501 62 1.1mb 1.1mb  
green open .monitoring-es-6-2019.01.09 hk2Ju\_IsR8mBEgfZf3IBvQ 1 0 1899 70 1.1mb 1.1mb  
green open .monitoring-es-6-2019.01.17 eddEp5tUQOWPomDvvPztbg 5 0 74 14 479.7kb 479.7kb  
green open .watches VN6C5FEBR5C6DtneCT9i5g 1 0 6 0 58.8kb 58.8kb  
green open .monitoring-alerts-6 7TikMq9fTR6sLG1NpiPZVA 5 0 12 2 63kb 63kb  
green open .monitoring-es-6-2019.01.21 fLcvMt9aTjShOaLvAMxWSg 5 0 16 0 101.5kb 101.5kb  
green open .monitoring-es-6-2019.01.13 7jARe3HsSO2e1DLm0FU\_tQ 5 0 961 44 1.3mb 1.3mb  
green open .monitoring-es-6-2019.01.19 sTbBxT0MRp25ewJ1R3QD0w 5 0 2108 48 1.5mb 1.5mb  
green open .triggered\_watches SNGg5srVS7qamVxuedcEJg 1 0 0 0 266b 266b  
green open .monitoring-es-6-2019.01.12 z4zY4gJfQbmf5TCTNeiTYQ 5 0 225 37 927.2kb 927.2kb  
green open .watcher-history-9-2019.01.13 7OYM9ZO7QHiRNG9lm6x0Gg 1 0 146 0 326.1kb 326.1kb  
green open .monitoring-es-6-2019.01.18 8zbsAWeNSnmJszaGhZSEqg 5 0 194 37 878.6kb 878.6kb

---

<div class="post-metadata">

**Author:** ![li\_jessen2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/li_jessen2016/32/38817_2.png) [@li\_jessen2016](https://discuss.elastic.co/u/li_jessen2016)\
**Post date:** [January 22, 2019, 7:59am UTC](https://discuss.elastic.co/t/watcher-and-kibana/164146/8 "2019-01-22T07:59:42Z")

</div>

This time exception happened. The response is:  
\< HTTP/1.1 200 OK  
\< content-type: text/plain; charset=UTF-8  
\< content-length: 1767  
\<  
green open .monitoring-es-6-2019.01.14 xj9q0ZfJTwOAc94MGdGd8g 5 0 1630 67 1.5mb 1.5mb  
green open .watcher-history-9-2019.01.14 h0DlvC0rTRquT3Ss2iKfiw 1 0 1072 0 1.2mb 1.2mb  
green open .watcher-history-9-2019.01.22 JKHCY9uTT-6hO\_-FjFLdMA 1 0 50 0 296.4kb 296.4kb  
green open .watcher-history-9-2019.01.16 7WqoOQluTG251MIttqjuww 1 0 536 0 812.2kb 812.2kb  
green open .security-6 fHmukzE9QuO9BrbTQW7hMw 1 0 6 0 19.5kb 19.5kb  
yellow open customer rkOXvMjlRtemUtYP3Whf\_Q 5 1 0 0 1.2kb 1.2kb  
green open .monitoring-es-6-2019.01.22 40W7Gt4hQcCOKC022Q9MTQ 5 0 1102 28 1.1mb 1.1mb  
green open .monitoring-es-6-2019.01.16 ROwwI\_Y3RiOMZItsw6kgvw 5 0 501 62 1.1mb 1.1mb  
green open .monitoring-es-6-2019.01.09 hk2Ju\_IsR8mBEgfZf3IBvQ 1 0 1899 70 1.1mb 1.1mb  
green open .monitoring-es-6-2019.01.17 eddEp5tUQOWPomDvvPztbg 5 0 74 14 479.7kb 479.7kb  
green open .watches VN6C5FEBR5C6DtneCT9i5g 1 0 6 0 69.4kb 69.4kb  
green open .monitoring-alerts-6 7TikMq9fTR6sLG1NpiPZVA 5 0 12 1 50kb 50kb  
green open .monitoring-es-6-2019.01.21 fLcvMt9aTjShOaLvAMxWSg 5 0 16 0 101.5kb 101.5kb  
green open .monitoring-es-6-2019.01.13 7jARe3HsSO2e1DLm0FU\_tQ 5 0 961 44 1.3mb 1.3mb  
green open .monitoring-es-6-2019.01.19 sTbBxT0MRp25ewJ1R3QD0w 5 0 2108 48 1.5mb 1.5mb  
green open .triggered\_watches SNGg5srVS7qamVxuedcEJg 1 0 0 0 235b 235b  
green open .monitoring-es-6-2019.01.12 z4zY4gJfQbmf5TCTNeiTYQ 5 0 225 37 927.2kb 927.2kb  
green open .watcher-history-9-2019.01.13 7OYM9ZO7QHiRNG9lm6x0Gg 1 0 146 0 326.1kb 326.1kb  
green open .monitoring-es-6-2019.01.18 8zbsAWeNSnmJszaGhZSEqg 5 0 194 37 878.6kb 878.6kb

---

<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:** [February 19, 2019, 7:59am UTC](https://discuss.elastic.co/t/watcher-and-kibana/164146/9 "2019-02-19T07:59:52Z")

</div>

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