Splunk® Enterprise

Search Reference

Download manual as PDF

Splunk Enterprise version 6.x is no longer supported as of October 23, 2019. See the Splunk Software Support Policy for details. For information about upgrading to a supported version, see How to upgrade Splunk Enterprise.
This documentation does not apply to the most recent version of Splunk. Click here for the latest version.
Download topic as PDF



Loads search results from a specified static lookup table.


inputlookup [append=<bool>] [start=<int>] [max=<int>] (<filename> | <tablename>)

Required arguments

Syntax: <string>
Description: The name of the lookup file (must end with .csv or .csv.gz). If the lookup does not exist, Splunk will display a warning message (but it won't cause a syntax error).
Syntax: <string>
Description: The name of the lookup table as specified by a stanza name in transforms.conf.

Optional arguments

Syntax: append=<bool>
Description: If set to true, the data from the lookup file is appended to the current set of results rather than replacing it. Defaults to false.
Syntax max=<int>
Description: Specify the maximum number of events to be read from the file. Defaults to 1000000000.
Syntax: start=<int>
Description: Specify the 0-based offset of the first event to read. If start=0, it begins with the first event. If start=4, it begins with the fifth event. Defaults to 0.


Reads in lookup table as specified by a filename (must end with .csv or .csv.gz) or a table name (as specified by a stanza name in transforms.conf). If 'append' is set to true (false by default), the data from the lookup file is appended to the current set of results rathering than replacing it.


Example 1: Read in "usertogroup" lookup table that is defined in transforms.conf.

| inputlookup usertogroup

Example 2: Read in the "usergroup" lookup table lookup table that is defined in transforms.conf and append the fields to any current results.

| inputlookup append=t usertogroup

Example 3: Read in "users.csv" lookup file (under $SPLUNK_HOME/etc/system/lookups or $SPLUNK_HOME/etc/apps/*/lookups).

| inputlookup users.csv

See also

inputcsv, join, lookup, outputlookup


Have questions? Visit Splunk Answers and see what questions and answers the Splunk community has using the inputlookup command.

Last modified on 22 October, 2014

This documentation applies to the following versions of Splunk® Enterprise: 6.0, 6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.8, 6.0.9, 6.0.10, 6.0.11, 6.0.12, 6.0.13, 6.0.14, 6.0.15, 6.1, 6.1.1, 6.1.2, 6.1.3, 6.1.4, 6.1.5, 6.1.6, 6.1.7, 6.1.8, 6.1.9, 6.1.10, 6.1.11, 6.1.12, 6.1.13, 6.1.14, 6.2.13, 6.2.14, 6.2.15

Was this documentation topic helpful?

Enter your email address, and someone from the documentation team will respond to you:

Please provide your comments here. Ask a question or make a suggestion.

You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters