Splunk Search

Lookup Can't Find File

hartfoml
Motivator

I am in a clustered indexer environment and some but not all of my indexers are showing this error

"The lookup table 'org-lookup' does not exist. It is referenced by configuration 'host::*'."

How to I find the file or APP or props.conf that this look-up is referring to?

Thanks in advance for your help.

Tags (1)
0 Karma

Drainy
Champion

Or an even easier Splunk-centric way to find this would be to run from the $SPLUNK_HOME/bin directory;

./splunk cmd btool transforms list --debug | grep org-lookup

Chances are that the lookup exists in the $SPLUNK_HOME/etc/users/ directory somewhere and it just needs to be made public (although there are plenty of other reasons).

It looks like a defined lookup so you could try in Manager and lookups first, it may well be defined in the UI.

Drainy
Champion

btool is one of the most useful commands when troubleshooting Splunk, the --debug flag prepends the app that the config stanza is from to the line. You can run it without and it just won't show you the app context. The most powerful part of btool is that it shows you the applied configuration of all config files

0 Karma

mbenwell
Communicator

btool. I had no idea that existed. Thanks

The lookup location is interesting, I dont have any lookups in $SPLUNK_HOME/etc/users . When I've created lookup files via GUI, I dont specify a filesystem path, just filename and Splunk always seems to put it in the app/looklups directory

0 Karma

mbenwell
Communicator

You should find the reference to the lookup file in transforms.conf. The lookup file itself would typically be in $SPLUNK_HOME/etc/apps//lookups

If on linux the easiest way to find which transforms.conf file that it contains the lookup configuration is to do something like this from the command line:
for i in `locate transforms.conf`; do grep -i5H 'org-lookup' $i; done

The above assumes you have locate installed and up to date.

You should be able to do something similar in Windows

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!

Persistent Queue at TcpOut — One of Splunk's Most Practical Features

Splunk introduced persistent queueing at the tcpout layer as one of the most practical resilience features in ...

Skip the Awkward Silence: Have a .conf-ersation at .conf26

Picture this. You arrive at .conf26 already having your socializing and networking plans mapped out. No ...

Rethinking Zero Trust: From Product Purchases to Logical Control Evidence

Implementing Zero Trust (ZT) across complex environments often falters at the very beginning due to a ...