Scripted Fields in Kibana 4.5.3

How to covert a field type to a numeric if that fields exists in the doc. I have done the conversion in logstash script, but its not reflecting as number in kibana. So i am trying the scripted fields to convert it at kibana level.

Any help would be appreciated.

I am simply using doc['field_name'].value and its working if the field is there in doc, but if the doc doesn't have that field its throwing exception in discover while accessing the results. This field will be there in few documents only.

I have figured out the solution, i don't need to use the scripted field. I have refreshed the fields in kibana and the field is coming as number.

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