Hello,
I wand a add a field by a painless (or another scripting language) to call an API data and show the result in the field by emit for example ???
To be more clearly exactly, for example i have an API http://xxx.xxx.xxx.xxx:yyy?v1=x1&v2=x2&ip=ip1 where ip1 can be retrieve by doc["ipadd.keyword'].value.
Example :
def s = doc['src.keyword'].value;
def v = http://xxx.xxx.xxx.xxx:yyy?v1=x1&v2=x2&ip=s;
if (v ){
return emit("True");
}
else {
emit("False");
}
The task is very important for us and i need your help for this if someone directed me to the right path please.
Thanks for the support