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 Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...