Search on Scripted field in kibana

Hi All,

I have created a scripted field in Kibana using painless language. I can see the field in dashboard and discover tab. However, I cannot use that field to search in elasticsearch.

Is it possible to search on the scripted field in kibana?

Thanks,
Manideep

Hi @manideep!

What version of Kibana are you using? We added support for searching scripted fields using Kibana Query Language: https://www.elastic.co/guide/en/kibana/master/kuery-query.html in 6.3

Thanks,
Liza

Hi @Liza_Dayoub

Thank you for the response

I am using Kibana 7.2. So, the Idea is to use this scripted filed outside kibana meaning, I have my own UI in angular 7 and wanted to use this field as filter.

Can I also use the scripted field in search query like any other field?

Thanks,
Manideep

Elasticsearch supports querying scripted fields, this link might help you: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-script-fields.html. I hope that helps!

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