Splunk Search

cidr match is not properly working

syazwani
Path Finder

Hi,

Why my CIDR matching in not following the lookup content?

Query i used is as below:

| makeresults
| eval ip="10.10.10.10"
| lookup testip ip OUTPUTNEW description

Result should look like this:

ipDescription
10.10.10.10New

 

But the real output look like this:

ipDescription
10.10.10.10New
In Progress
Closed

 

I have check my lookup and its clearly state the Description for IP Range 10.10.10.10/27 is "New".

Please help and thanks!

 

Tags (1)
0 Karma

yuanliu
SplunkTrust
SplunkTrust
  1. Is your lookup's ip field using CIDR notation?
  2. Did you set up CIDR(ip) in lookup definition?
  3. Is there any overlapping CIDR's (ip) that 10.10.10.10 can match in your lookup?

About 3, for example, if your lookup is like this:

ipDescription
10.10.10.10/27New
10.10.10.0/24In Progress
10.10.8.0/16Closed

10.10.10.10 will match all three.

0 Karma

jotne
Builder

Post the output of:

| inputlookup testip

If its to long post part with IP 10.10.10.x

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...