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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...