I am getting a strange error when using geoip. [MaxmindDataAdapter] Unable to parse IP address, returning empty result.
rule “rule geoip lookup”
when
has_field(“o365_client_ip”)
then
let ip = $message.o365_client_ip;
let geo = lookup(“geo_lookup”, to_string(ip));
let debug_message = concat(
first: "geo_location: ",
second: to_string(ip));
debug(debug_message);
I have tried this but still the same issue: [MaxmindDataAdapter] Unable to parse IP address, returning empty result.
2020-09-26T21:22:16.121+05:00 INFO [Function] PIPELINE DEBUG: geo_location: “101.xx.xx.xxx”
rule “rule geoip lookup”
when
has_field(“o365_client_ip”)
then
let ip = to_string($message.o365_client_ip);
let geo = lookup(“geo_lookup”, ip);
let debug_message = concat(
first: "geo_location: ",
second: to_string(ip));
debug(debug_message);
is it? ip =“IP” from to_string($message.o365_client_ip); , and it is looking for ip=IP without quotes? to_ip changes to 0.0.0.0 but not giving parse error? any ideas