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!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...