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!

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