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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...