Update lookup file
I am trying to update a lookup file based on a query that will return some IP addresses. I am running this on a fusion workflow and able to get the new IP address based on the following query.
| #repo=abc123
| url.domain=/abc.com/i
| table([destination.ip])
| groupBy([destination.ip])
| join({readFile(["lookup.csv"]) | table([destination.ip]) | case {destination.ip=* | existing:=true}}, field=destination.ip, key=destinationIP, mode=left, include=[existing])
| existing != true
| table([destination.ip])
This query returns on new IP address.
How can I update the lookup file with the new IP?