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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...