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!

 

Labels (1)
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
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...