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!

.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 ...