Search code examples
kibanakibana-4

String output in kibana 4 scripted field


Is there any way to do scripted field to return a string value? Currently kibana documentations says only number scripted fields are allowed.

example: I am having field A = 1 and i want my required field B = "Foo 1".


Solution

  • As of Kibana4, it doesn't support non-numeric fields. If you require non-numeric scripted field, you can still you elastic search scripted field instead kibana scripted field.

    But the downside is you have to reindex your ES.