# Scripted field and "Too many dynamic script compilations within one minute,"

**URL:** <https://discuss.elastic.co/t/scripted-field-and-too-many-dynamic-script-compilations-within-one-minute/101671>\
**Category:** Kibana\
**Created:** [September 25, 2017, 9:37am UTC](https://discuss.elastic.co/t/scripted-field-and-too-many-dynamic-script-compilations-within-one-minute/101671 "2017-09-25T09:37:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [September 25, 2017, 7:31pm UTC](https://discuss.elastic.co/t/scripted-field-and-too-many-dynamic-script-compilations-within-one-minute/101671/2 "2017-09-25T19:31:20Z")

</div>

It looks like there's a [change to that check](https://github.com/elastic/elasticsearch/pull/26399) that will be landing in 6.0, which doesn't really help you now, but just so you know.

As for the setting, I tried running this in Kibana's Console, and it worked for me. Are you sure you don't have something else enabled that might stop you from setting it (like Security)?

```auto
PUT /_cluster/settings
{
  "transient": {
    "script.max_compilations_per_minute": 40
  }
}

```

Otherwise, it looks like Kibana only supports inline scripts, so indexed and file based scripts are out. And as far as I can tell, there's no way to use parameters with inline scripts in Kibana either.

---

_[View the full topic](https://discuss.elastic.co/t/scripted-field-and-too-many-dynamic-script-compilations-within-one-minute/101671)._
