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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...