# Timelion and aggs\_executable

**URL:** <https://discuss.elastic.co/t/timelion-and-aggs-executable/164809>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [January 18, 2019, 2:12pm UTC](https://discuss.elastic.co/t/timelion-and-aggs-executable/164809 "2019-01-18T14:12:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hage42](https://avatars.discourse-cdn.com/v4/letter/h/c77e96/32.png) [@hage42](https://discuss.elastic.co/u/hage42)\
**Post date:** [January 18, 2019, 2:12pm UTC](https://discuss.elastic.co/t/timelion-and-aggs-executable/164809/1 "2019-01-18T14:12:21Z")

</div>

Hi,

i had scripting disabled so far on my cluster (6.3.2) , and though i kept timelion disabled in kibana.yml, as well. Now my users are requesting it. I added "inline" as an allowed scripting-type and added contexts step by step and ended up using this:

```
script.allowed_types: inline
script.allowed_contexts: search, aggs, aggs_executable

```

An exception while calling timelion required "aggs\_executeable" to be enlisted, as well. I want to keep my settings as restricted as possible, so i felt kind of uncomfortable adding that context, especially because of i couldn't find any documentation about it. Only "resource" I found is this:

> <https://github.com/elastic/elasticsearch/issues/32120>

Can someone please tell me, why this context is needed for running timelion / what gets enabled by adding this context to the settings? And maybe even, why it is not documented, at all?

Thx

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [January 18, 2019, 2:36pm UTC](https://discuss.elastic.co/t/timelion-and-aggs-executable/164809/2 "2019-01-18T14:36:10Z")

</div>

Hey @Jack_Conradson,

It looks like you're assigned to the issue mentioned above, can you please shed some light on `aggs_executable`? Why do we need this and what does it do? Not sure if we still rely on this in more recent versions of the stack though.

Best,  
Oleg

---

<div class="post-metadata">

**Author:** ![Jack\_Conradson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_conradson/32/47236_2.png) [@Jack\_Conradson](https://discuss.elastic.co/u/Jack_Conradson)\
**Post date:** [January 18, 2019, 5:20pm UTC](https://discuss.elastic.co/t/timelion-and-aggs-executable/164809/3 "2019-01-18T17:20:56Z")

</div>

In the process of updating our script contexts aggs\_executable was added as a placeholder and is required for different types of agg scripts. Each type of script in future releases has their own context that contains the relevant parameters that are available. The documentation was unfortunately something that fell through the cracks as listed in the issue you saw. I still need to update the current lists of available contexts.

---

<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 15, 2019, 5:21pm UTC](https://discuss.elastic.co/t/timelion-and-aggs-executable/164809/4 "2019-02-15T17:21:03Z")

</div>

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