Repair index after a wrong scripted field

hello

i have created a scripted field on metricbeat index to know the lifetime of some process.
Well now i am not able to see anymore ont he Kibana discover page.

I have the warning "Courier Fetch: 2 of 8 shards failed." and nothing appear

ans the elasticsearch log i have this error
Caused by: java.lang.ClassCastException: Cannot apply [-] operation to types [org.joda.time.MutableDateTime] and [org.joda.time.DateTime].
at org.elasticsearch.painless.DefMath.sub(DefMath.java:488) ~[?:?]
at org.elasticsearch.painless.PainlessScript$Script.execute(doc['@timestamp'].value-doc['system.process.cpu.start_time'].value:61) ~[?:?]
at org.elasticsearch.painless.ScriptImpl.run(ScriptImpl.java:105) ~[?:?]
at org.elasticsearch.search.fetch.subphase.ScriptFieldsFetchSubPhase.hitsExecute(ScriptFieldsFetchSubPhase.java:67) ~[elasticsearch-6.2.3.jar:6.2.3]

So my question is how i can fix that ?

Okay, i hadn't delete the scripted field....

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