pipelineでScriptException発生

Elastic Cloudのコンソールログにて、以下のWARNが継続して発生しております。データ登録等の動作は問題ないように見えます。
原因をご教示頂けないでしょうか。

[instance-0000000024] failure parsing pipeline config [ddi] org.elasticsearch.script.ScriptException:
compile error at org.elasticsearch.painless.PainlessScriptEngine.convertToScriptException(PainlessScriptEngine.java:474)
~[?:?] at org.elasticsearch.painless.PainlessScriptEngine.compile(PainlessScriptEngine.java:394)
~[?:?] at org.elasticsearch.painless.PainlessScriptEngine.compile(PainlessScriptEngine.java:145)
~[?:?] at org.elasticsearch.script.ScriptService.compile(ScriptService.java:358)
~[elasticsearch-7.6.1.jar:7.6.1] at org.elasticsearch.ingest.common.ScriptProcessor$Factory.create(ScriptProcessor.java:123)
~[?:?] at org.elasticsearch.ingest.common.ScriptProcessor$Factory.create(ScriptProcessor.java:103)
~[?:?] at org.elasticsearch.ingest.ConfigurationUtils.readProcessor(ConfigurationUtils.java:428)
~[elasticsearch-7.6.1.jar:7.6.1] at org.elasticsearch.ingest.ConfigurationUtils.readProcessor(ConfigurationUtils.java:398)
~[elasticsearch-7.6.1.jar:7.6.1] at org.elasticsearch.ingest.ConfigurationUtils.readProcessorConfigs(ConfigurationUtils.java:336)
~[elasticsearch-7.6.1.jar:7.6.1] at org.elasticsearch.ingest.Pipeline.create(Pipeline.java:74)
~[elasticsearch-7.6.1.jar:7.6.1] at org.elasticsearch.xpack.ml.inference.ingest.InferenceProcessor$Factory.accept(InferenceProcessor.java:211)
[x-pack-ml-7.6.1.jar:7.6.1] at org.elasticsearch.xpack.ml.inference.ingest.InferenceProcessor$Factory.accept(InferenceProcessor.java:168)
[x-pack-ml-7.6.1.jar:7.6.1] at org.elasticsearch.ingest.IngestService.lambda$applyClusterState$5(IngestService.java:543)
[elasticsearch-7.6.1.jar:7.6.1] at java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:804)
[?:?] at org.elasticsearch.ingest.IngestService.applyClusterState(IngestService.java:543)
[elasticsearch-7.6.1.jar:7.6.1] at org.elasticsearch.cluster.service.ClusterApplierService.lambda$callClusterStateAppliers$5(ClusterApplierService.java:517)
[elasticsearch-7.6.1.jar:7.6.1] at java.lang.Iterable.forEach(Iterable.java:75)
[?:?] at org.elasticsearch.cluster.service.ClusterApplierService.callClusterStateAppliers(ClusterApplierService.java:514)
[elasticsearch-7.6.1.jar:7.6.1] at org.elasticsearch.cluster.service.ClusterApplierService.applyChanges(ClusterApplierService.java:485)
[elasticsearch-7.6.1.jar:7.6.1] at org.elasticsearch.cluster.service.ClusterApplierService.runTask(ClusterApplierService.java:432)
[elasticsearch-7.6.1.jar:7.6.1] at org.elasticsearch.cluster.service.ClusterApplierService.access$100(ClusterApplierService.java:73)
[elasticsearch-7.6.1.jar:7.6.1] at org.elasticsearch.cluster.service.ClusterApplierService$UpdateTask.run(ClusterApplierService.java:176)
[elasticsearch-7.6.1.jar:7.6.1] at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:633)
[elasticsearch-7.6.1.jar:7.6.1] at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:252)
[elasticsearch-7.6.1.jar:7.6.1] at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:215)
[elasticsearch-7.6.1.jar:7.6.1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[?:?] at java.lang.Thread.run(Thread.java:830)
[?:?] Caused by: java.lang.IllegalStateException: Regexes are disabled. Set [script.painless.regex.enabled] to [true] in elasticsearch.yaml to allow them. Be careful though,
regexes break out of Painless's protection against deep recursion and long loops. at org.elasticsearch.painless.PainlessScript$Script.compile( ...:153)
~[?:?] at org.elasticsearch.painless.node.ERegex.analyze(ERegex.java:67) ~[?:?] at org.elasticsearch.painless.node.PCallInvoke.analyze(PCallInvoke.java:68)
~[?:?] at org.elasticsearch.painless.node.SDeclaration.analyze(SDeclaration.java:68)
~[?:?] at org.elasticsearch.painless.node.SDeclBlock.analyze(SDeclBlock.java:58)
~[?:?] at org.elasticsearch.painless.node.SBlock.analyze(SBlock.java:73)
~[?:?] at org.elasticsearch.painless.node.SEach.analyze(SEach.java:99)
~[?:?] at org.elasticsearch.painless.node.SBlock.analyze(SBlock.java:73)
~[?:?] at org.elasticsearch.painless.node.SIfElse.analyze(SIfElse.java:85)
~[?:?] at org.elasticsearch.painless.node.SClass.analyze(SClass.java:194)
~[?:?] at org.elasticsearch.painless.node.SClass.analyze(SClass.java:150)
~[?:?] at org.elasticsearch.painless.Compiler.compile(Compiler.java:214)
~[?:?] at org.elasticsearch.painless.PainlessScriptEngine$2.run(PainlessScriptEngine.java:389)
~[?:?] at org.elasticsearch.painless.PainlessScriptEngine$2.run(PainlessScriptEngine.java:385)
~[?:?] at java.security.AccessController.doPrivileged(AccessController.java:391)
~[?:?] at org.elasticsearch.painless.PainlessScriptEngine.compile(PainlessScriptEngine.java:385)
~[?:?] ... 26 more

この部分が原因かと思われます。

確か、script.painless.regex.enabledのデフォルト値はfalseだったように思います。これをtrueにしておかないと、regexあたりのPainless Scriptを書いたときにこのような状態になるのでは?と。

Elasticsearch Serviceでもこの設定値はサポートされているので、この設定を試してみて現象が改善するかどうかを確認いただくのが良いと思います。

script.painless.regex.enabled
Enables regular expressions for the Painless scripting language.

ご教示頂いた方法でエラーが解消したように見えます。
ありがとうございました

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