Splunk Search

Why is Lookup definition in transforms.conf not returning results?

_av
Loves-to-Learn

I have created a lookup in the LOOKUP folder placed in local. Post that I defined the lookup in transforms.conf.

This is the stanza defined in transforms.conf

 

[lookup_name]

filename = lookup_name.csv

 

All the changes are pushed to dev repository in git but when I am trying to search the lookup in search head, I am unable to find the same. Is there any additional step that I am missing out on?

Labels (1)
0 Karma

jbrocks
Communicator

On which instance did you place the lookup file and how are you checking? If your lookup only exists on search head, then depending on your search, you might need to tell the lookup command so search local like: 

...|lookup local=t mylookup ...

 

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

Please make sure the following:

* You added the lookup file lookup_name.csv in the $SPLUNK_HOME/etc/apps/<app-name>/lookups directory.

* And you added the transforms.conf under $SPLUNK_HOME/etc/apps/<app-name>/local directory.

* Once you do that and perform Splunk restart run the below query from the same App (<app-name>) to see if your lookup loaded or not.

| inputlookup lookup_name

 

If you want to access your lookup from any App then you need to add the below stanza in $SPLUNK_HOME/etc/apps/<app-name>/metadata/local.meta (or you can use the default.meta)

[transforms]
export = system

[lookups]
export = system

* Further reference - https://dev.splunk.com/enterprise/tutorials/module_getstarted/setpermissions/

 

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...