Splunk Search

IP Range Lookup

splunkrocks2014
Communicator

I have IP lookup table (ips.csv) mixed with different types of formats such as

ip
-----------------------
192.168.1.0/24
192.168.2.0-192.168.2.36
192.168.3.3

From transforms.conf, I defined a ip_lookup object as the following:

 [ip_lookup]
 filename = ips.csv
 match_type = CIDR(ip)

Does my lookup work with single IP or a IP range like this, 192.168.2.0-192.168.2.36?

Thanks.

Tags (1)
1 Solution

starcher
Influencer

cidr lookups have to be in /mask format. if the line is a single IP it should be 192.168.3.3/32

View solution in original post

adonio
Ultra Champion

can you elaborate? what is the problem you are trying to solve?

0 Karma

splunkrocks2014
Communicator

I got the answer from starcher. Thank you for asking.

0 Karma

starcher
Influencer

cidr lookups have to be in /mask format. if the line is a single IP it should be 192.168.3.3/32

splunkrocks2014
Communicator

Thank you starcher. This is what I am looking for.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...