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
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...