Splunk Search

CIDR Blocks in a lookup table

xvxt006
Contributor

Hi,

i have CSV file for a IP lookups. Question is can i use a CIDR block in the csv file? and when search time will splunk be able to see all the individual IPs from that Blcok.

Companyname IP
Company XXX 63.122.163.0/27
Company YYY 63.123.345.23

Tags (1)
0 Karma

gkanapathy
Splunk Employee
Splunk Employee

Yes you can. If you look at the lookup configuration section in the transforms.conf file documentation, you'll see there is a setting match_type which you can set to CIDR(IP) or CIDR(fieldname) in general.

0 Karma

xvxt006
Contributor

Can i specify both CIDR blocks and regualr IPs in the same file in the same file if i have match_type as CIDR(IP)..

0 Karma

xvxt006
Contributor

Thank you. i will look into the documentation.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...