Splunk Search

Auto Lookup CIDR

jgillman
Explorer

I have created a csv lookup file that looks like this
computerip Sitename
10.89.64.0/24 Test Site

Then I went through set up a auto lookup and lookup definitions and set the permissions to global.
In the Match Type I put CIDR(computerip)

When I run the code

| makeresults | eval ip="10.89.64.11" | lookup fultonip.csv computerip as ip OUTPUT SiteName | table ip SiteName

I get no results.
I am not sure what I am doing wrong. Any help would be appreciated.

Tags (1)
0 Karma
1 Solution

starcher
Influencer

Because you are referencing the filename.csv that is not a lookup definition. You must use the definition name to get the lookup definition features.

View solution in original post

starcher
Influencer

Because you are referencing the filename.csv that is not a lookup definition. You must use the definition name to get the lookup definition features.

Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...