Hi. I would like to create a report in Kibana that compares the value of 2 fields that exist in different indexes, and output a True or False if they do or do not match. E.g.
index1.fieldA, index2.fieldA, is_match
I was looking to use a Runtime field for 'is_match' with a script such as:
if (doc['index1.fieldA'].value == doc['index2.fieldA'].value)
{
emit("True");
}
else
{
emit("False");
}
But it doesn't seem to like the 2 different index prefixes. Is there a way I can accomplish this?
Thanks in advance.