Using fields host early removes unneeded event fields while retaining the lookup key. The fields command is distributable streaming, and a lookup without local=true is also distributable streaming. Specifying local=true forces the lookup to run on the search head, while table is a transforming command that prevents subsequent distributable commands from running on indexers. Restricting the initial search to sourcetype=bar also avoids searching unnecessary sourcetypes.
Community Discussion