Splunk Search

Is there a way to make automatic lookups only use the local lookup table that exists on my search head?

Flynt
Splunk Employee
Splunk Employee

From my search flashtimeline I can tell my search head in a distributed environment to only use the local lookup file by adding local=true to my lookup statement. Is there a way to make automatic lookups only use the local lookup table that exists on my Search Head?

Labels (1)
1 Solution

hexx
Splunk Employee
Splunk Employee

Looking at props.conf.spec and transforms.conf.spec, there doesn't seem to be a way to configure an automatic lookup to occur only locally on the search-head.

Time to file an enhancement request!

View solution in original post

elewis1
Path Finder

I know this is old, but it's the first Google result.

A workaround is Calculated fields can use |eval lookup(). The lookup must be a .csv file on the search head(s).

 

https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/definecalcfields

https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/ConditionalFunctions

0 Karma

nunoaragao
Path Finder

To @potnuru  and others that might fall here .. there is a setting on transforms.conf called replicate to: 

Indicates whether to replicate CSV lookups to indexers

 

rquish
Engager

This is the solution I was looking for. The lookup definition UI does not have the option to keep it local like the SPL does. This is effectively making the lookup local wherever/whenever called.

Thanks for insight... better late than never 🙂

0 Karma

hexx
Splunk Employee
Splunk Employee

Looking at props.conf.spec and transforms.conf.spec, there doesn't seem to be a way to configure an automatic lookup to occur only locally on the search-head.

Time to file an enhancement request!

potnuru
Path Finder

Hi @hexx Is there a way to configure an automatic lookup to occur only locally on the search-head now?

0 Karma
Get Updates on the Splunk Community!

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...