Hi there,
Is it possible to use multi-value lookup values inside of the WHEN statement in a pipeline rule?
For example, within a THEN statement, it is possible to do this:
let geo = lookup(“geoip-lookup”, to_string($message.remote_ip));
geo[“country”].iso_code
But how can I do the same in the WHEN statement?
rule “check_last_location”
when
has_field(“remote_ip”) &&
lookup(“geoip-lookup”, $message.remote_ip)) ??? How to reference [“country”].iso_code
then
set_field(“VPN-location-unexpected”, 1);
end