In a previous version of Kibana I had some controls that in the new version are deprecated.
As I imported the visualizatiosn to the new version, I changed the control to the new verson funcionality,.
One of my fields was a scripted field in the old version, but in the new does not appear to be selected in control .
The fact is that, I need to create a extra field that act like a dictionary for a numeric field and later it will be used as in a control to act like a filter.
e.g. of the field code:
if (doc['header.type'].value == 0 )
if (doc['header.type'].value == 1 )
if (doc['header.type'].value == 2 )
I tried to create a field in data view with this code, but as I select it in my dashboard control no values appears.
Than I tried also to recreate the scripted field but it does not appear to be selected in my dashboard control.
I´ve tried runtime field as keyword, using the code of the fisrt post.
I could choose the field in the control functionality, but as I opened the control option list no results are comming, even if I could see the values of the field in discoverer .