Failed to compile inline script when remove field in pipeline

In elastic logs I have errors

ElasticsearchParseException: Error updating pipeline with id
(...)
Too many dynamic script compilations within

I am trying to change the configuration of the pipe and one thing is very interesting and unexpected.

One of the errors is

Caused by: org.elasticsearch.script.GeneralScriptException: Failed to compile inline script [XXX] using lang [mustache]
(...)
Caused by: org.elasticsearch.common.breaker.CircuitBreakingException: [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

Elastic throws above error when pipe have remove processor like this

{
  "remove": {
    "field": [
      "message",
      "some_ts",
      "XXX"
    ]
  }
}

When pipeline is changed to

{
  "remove": {
    "field": [
      "message",
      "some_ts"
    ]
  }
}

there is no

Caused by: org.elasticsearch.script.GeneralScriptException: Failed to compile inline script [XXX] using lang [mustache]

in logs.

What is it related to and how to configure the deletion of this field, but without receiving errors.

I have one more similar situation. Error log

Failed to compile inline script [{{some.field.yyy}}] using lang [mustache]

which is connected with

{
  "set": {
    "field": "yyy",
    "value": "{{some.field.yyy}}"
  }
}

but when I change it to

{
"rename": {
"field": "some.field.yyy",
"target_field": "yyy"
}
}

error disappear.

Any suggestions?

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