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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...