Splunk Search

How to incorporate a Lookup in search?

tkerr1357
Path Finder

Hi all,

I am struggling a bit with incorporating a lookup into my searches.  I have a lookup file that is a single column of IP addresses and a header of TORIP. It should be a pretty basic search index=* src_ip=* followed by the lookup. I added the lookup file and lookup definition but when I run a search it fails saying the lookup table doesnt exist. splunk search help.PNG 

Labels (1)
Tags (2)
0 Karma
1 Solution

tkerr1357
Path Finder

Thank you, I was able to figure out the issue. I failed to place an OUTPUT ofter defining the field so there was nothing for the search to look at. I fixed that and then added a search command to look for any of the IPs in the lookup command. 

View solution in original post

0 Karma

yuanliu
SplunkTrust
SplunkTrust

After uploading TORIP.csv, did you define a lookup with it? (C.f., Define a CSV lookup in Splunk Web.)  When I use a file named "foo.csv", I usually name the lookup "foo" to remind me that it is a necessary step.

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Is the lookup visible to the user and is it in the same app or global?

0 Karma

tkerr1357
Path Finder

Thank you, I was able to figure out the issue. I failed to place an OUTPUT ofter defining the field so there was nothing for the search to look at. I fixed that and then added a search command to look for any of the IPs in the lookup command. 

0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...