Modifying an existing saved search to populate a lookup table

You can modify an existing saved search via a configuration file to populate a lookup table by adding the following code to the search stanza in any of your savedsearches.conf files:

action.populate_lookup = 1action.populate_lookup.dest = <string>

The <string> value can either be the path to a *.csv file or the name of an existing lookup table definition in the transforms.conf file.

Alternatively, you can also just use the Splunk GUI and amend the saved search to include the outputlookup command and required parameters.

Get Splunk Operational Intelligence Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.