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
Get Updates on the Splunk Community!

Splunk Observability Synthetic Monitoring - Resolved Incident on Detector Alerts

We’ve discovered a bug that affected the auto-clear of Synthetic Detectors in the Splunk Synthetic Monitoring ...

Video | Tom’s Smartness Journey Continues

Remember Splunk Community member Tom Kopchak? If you caught the first episode of our Smartness interview ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud? Learn how unique features like ...