A security analyst wants to map IP addresses to hostnames using a CSV lookup file. Which command is correct to define a lookup that maps the IP field to hostname field, with the file named 'ip_host.csv'?
Correct syntax for lookup with field mapping.
Why this answer
Option A is correct because the lookup command syntax is 'lookup <lookup-table> <lookup-field> [OUTPUT <output-field>]' and here 'ip as ip_output hostname as hostname_output' correctly maps input ip to output ip_output and hostname to hostname_output. Option B is wrong because inputlookup returns all rows, not a join. Option C is wrong because the order is reversed.
Option D is wrong because 'OUTPUT' without aliases is incorrect.