Hi,
Im using Kibana 5.4.0
I have field netflow.ipv4_dst_addr. I want check this is private ỏ public ip.
Here is my script filed
def m = ^(?:10|127|172.(?:1[6-9]|2[0-9]|3[01])|192.168)..*$/.matcher(doc['netflow.ipv4_dst_addr'].value);
if ( m.matches() ) {
return "private"
} else {
return "public"
}
but kibana show compile error
Can u suggest me script field for this case ? And where is i can debug script field before put script to kibana?
Thanks
