Getting Data In

How to rename a specific IP subnets appearing in search to some name i.e city network

aqudoos
Explorer

index=* | stats count by source_ip,dest_port

I got my results against Source_ip,dest_port.Now i want to rename the IP's belonging to specific subnets to some specific name.

Is it possible ?

0 Karma
1 Solution

FrankVl
Ultra Champion

Sure.

Probably the easiest way is to put the IP subnet to name mapping in a lookup table, and then add a lookup command to your current search to map the IP address to a name. Lookups support a match_type=CIDR to enable lookups from IP to subnet.

View solution in original post

FrankVl
Ultra Champion

Sure.

Probably the easiest way is to put the IP subnet to name mapping in a lookup table, and then add a lookup command to your current search to map the IP address to a name. Lookups support a match_type=CIDR to enable lookups from IP to subnet.

Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...