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!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

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

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...