Dashboards & Visualizations

How to map IP addresses to groups?

mansolo
New Member

Hi all,

Splunk Newbie here. I am trying to map IP Addresses to Groups. I have SRC_IP, DEST_IP fields in my csv input. For instance, if I have 1.1.1.1 as source and 2.2.2.2 as a destination. I wanted to add fields in my table to say1.1.1.0/24 CIDRand maps to group Printers and2.2.2.0/24` to group PCs, for example.

I have been looking at the cidrmatch and lookup table, are these the right approaches? Any suggestions?

My input is a csv includes source and destination IP and port numbers. Thank you in advance.

M.S.

0 Karma

starcher
Influencer

You should use a cidr match lookup table.
https://docs.splunk.com/Documentation/Splunk/7.0.1/Knowledge/Addfieldmatchingrulestoyourlookupconfig...

Note when using match type CIDR your IP column whatever you call it must be in slash CIDR notation.

0 Karma
Get Updates on the Splunk Community!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

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