Read the lookup file in a subsearch and use the format command to help build the main search.
index=foo [|inputlookup payload.csv | fields payload | format]
will expand into the search index=foo (payload=*.exe OR payload=*.zip OR payload=*.7z)
... View more