# Cisco module, ES error too many dynamic script compilations within, max

**URL:** <https://discuss.elastic.co/t/cisco-module-es-error-too-many-dynamic-script-compilations-within-max/205139>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 24, 2019, 7:22pm UTC](https://discuss.elastic.co/t/cisco-module-es-error-too-many-dynamic-script-compilations-within-max/205139 "2019-10-24T19:22:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JSkier](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@JSkier](https://discuss.elastic.co/u/JSkier)\
**Post date:** [October 24, 2019, 7:22pm UTC](https://discuss.elastic.co/t/cisco-module-es-error-too-many-dynamic-script-compilations-within-max/205139/1 "2019-10-24T19:22:11Z")

</div>

I had Cisco ASA logs coming in fine awhile ago (7.4.0). Then they just stopped, no parsing happens, and this error is everywhere:

> [script] Too many dynamic script compilations within, max: [75/5m]; please use indexed, or scripts with parameters instead; this limit can be changed by the [script.max\_compilations\_rate] setting

I'm testing out an ELK cluster, all on 7.4.1 now, for beats also. Not sure what is up, I don't see anything in the debug log on the filebeat box itself.

---

<div class="post-metadata">

**Author:** ![pmercado](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@pmercado](https://discuss.elastic.co/u/pmercado)\
**Post date:** [October 25, 2019, 10:26am UTC](https://discuss.elastic.co/t/cisco-module-es-error-too-many-dynamic-script-compilations-within-max/205139/2 "2019-10-25T10:26:52Z")

</div>

Hi @JSkier,

can you set `script.max_compilations_per_minute` at elasticsearch to a value that might fit your needs (you will need to test, but sounds like some 20 should be an starting point)?

---

<div class="post-metadata">

**Author:** ![JSkier](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@JSkier](https://discuss.elastic.co/u/JSkier)\
**Post date:** [October 25, 2019, 5:29pm UTC](https://discuss.elastic.co/t/cisco-module-es-error-too-many-dynamic-script-compilations-within-max/205139/3 "2019-10-25T17:29:56Z")

</div>

Thank you, I tried this:

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

```

And get this error:

```
> "type": "illegal_argument_exception",
> "reason": "transient setting [script.max_compilations_per_minute], not recognized"
> },
> "status": 400

```

I also tried sending a persistent command. Should I be setting this on each config file of every indexer? Doesn't seem to like the cluster setting.

---

<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:** [November 22, 2019, 5:29pm UTC](https://discuss.elastic.co/t/cisco-module-es-error-too-many-dynamic-script-compilations-within-max/205139/4 "2019-11-22T17:29:59Z")

</div>

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