Editing runtime fields for remote index stopped working

Hello!

I had a few runtime fields working with a cluster against data in a remote cluster, and since upgrading both from 7.15 to 8.6 I'm unable to edit them or create new ones.

I ran into this when trying to fix usages of "org.elasticsearch.script.JodaCompatibleZonedDateTime", but found myself unable to edit them - the editor always reports "script error" and won't let me save valid scripts. Other runtime fields that work still say "script error" in the Preview pane for the field. I deleted the offending JodaCompatible fields to restore discover, but I need to recreate them to fix related visualizations and I can't.

I developed correct replacements directly on the remote cluster, but copying and pasting that same script to the cluster that needs to read the data results in "script error" in the preview pane, and trying to save bring up the " Please address the highlighted errors. * Invalid Painless script." dialog. (no errors are highlighted). The same happens with even "emit("Hello World!");"
I've looked in kibana and both cluster's logs but can't find any errors.

Both clusters are v8.6.2 with Basic licenses.

I've looked at 8.7 release notes and don't see anything related. Of course, I easily could have missed something!

Thank you for any help on this.

Can you bypass that by creating/updating the runtime fields via the API?

As for the error in Kibana, is there any error displayed in the browser console or in the Kibana log?

There are no errors displayed or that I can find in the logs, it simply says "script error". I'm not sure how to add this via API, the docs talk about adding a runtime field to the mapping, which seems different than adding it to a data view.

I certainly could change up and add these fields to my index template, but this isn't super high priority and I'd like to understand what's going on

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