Splunk Search

Error in 'lookup' command: The lookup table 'test_lookup' does not exist.

zliu
Splunk Employee
Splunk Employee

Below is the transforms.conf at $SPLUNK_HOME/etc/local:

[test_lookup]
filename=test.csv

And I uploaded test.csv (a csv file only with headers):time,host,foo in Manager > Data Input > Files & Directories > New > upload a local file. Also I have test.csv in $SPLUNK_HOME/etc/system/lookups.

However, when I run below search, I get "Error in 'lookup' command: The lookup table 'test_lookup' does not exist."

index="_*" | head 1 | lookup test_lookup host OUTPUT foo

Any idea why this is happening? I restarted Splunk after I modified transforms.conf. This is on version 4.1.0.

Thanks!

Tags (2)
1 Solution

muebel
SplunkTrust
SplunkTrust

You might find help here

http://answers.splunk.com/questions/1542/issues-with-pci-app-after-4-1-upgrade/1623#1623

I think the problem is that of the new lookup scoping mechanisms added in 4.1. Adding

[lookups]
export=system

to the $splunk_home/etc/system/metadata/local.meta config file should save your day.

View solution in original post

muebel
SplunkTrust
SplunkTrust

You might find help here

http://answers.splunk.com/questions/1542/issues-with-pci-app-after-4-1-upgrade/1623#1623

I think the problem is that of the new lookup scoping mechanisms added in 4.1. Adding

[lookups]
export=system

to the $splunk_home/etc/system/metadata/local.meta config file should save your day.

yannK
Splunk Employee
Splunk Employee

you can also change the permissions from the manager UI for the lookups definitions to "global"

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...