How to index scripted field with curl


(dob) #1

How can I index a scripted field to the .kibana index? Something like curl -XPOST 'http://localhost:9200/.kibana/scriptedfield/Test' -d 'code'


(Nathan Reese) #2

Scripted field are part of the index pattern saved object. Unfortunately, there is no current API for partial updates but you could programmatically overwrite the whole object (with the new scripted field included).

I create issue https://github.com/elastic/kibana/issues/16252 to track the enhancement request

Nathan


(system) #3

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