You can use something like this in a pre-processing script....
-- replace with file name. Note: this is a comma separated list. Each line needs to have the same number of values
fname = "C:/computers.txt"io.input(fname)
for line in io.lines() do
print(line)
tmp = split(line,"/,")
if tmp[1] == event.hostname then
print("Found record for: " .. event.hostname)
event.custom_1 = tmp[2]
event.custom_2 = tmp[3]
event.custom_3 = tmp[4]
event.custom_4 = tmp[5]
end
end
return event