Hi,
I am new to scripted field in Kibana. Kindly find my below mentioned code. This code is always returning "Message is Null" though I can find value for "message" field in Kibana. Can you please help me to resolve this issue?
**************************** CODE **************************
if(doc.containsKey('message.keyword'))
{
def message = doc['message.keyword'].value;
if (message!=null)
{
return "Message is Not Null";
}
else
{
return "Message is Null";
}
}
return "There is no field";
Thanks in Advanced...
Debashis Adak