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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...