I’m trying to get a multi variable lookup working from a csv.
I can get single variable working with no issue.
I can then put a larger csv in, the data adapter comes back with all the multiple fields.
But when I build it into a pipeline, so a search in this case for the key which is a IP. It Isn’t filling in the new variables I set for each multi variable that is outputted.
Can one point me at a good example I can follow please?
Pipeline:
rule “pr_geoip_dst_org”
when
has_field(field : “dst_ip”)
then
let dst_ip_raw = lookup(“geoip-lookup-asn”, to_string($message.“dst_ip”));
set_field(“dst_org”, lowercase(to_string(dst_ip_raw[“as_organization”])));
set_field(“dst_asn”, lowercase(to_string(dst_ip_raw[“as_number”])));
end