All Apps and Add-ons

Multiple Search for IP Network & Show in a Stacked Bar Chart

jeehinwong
New Member

Hi Guys,
I'm having a touch time here due to i'm still new in splunk. I am actually stuck on the situation below:
Below showing 192.168.0.0/16 & 192.169.0.0/16 is actually a network container that stores a lot of /30 network inside, and i would like to calculate all the used and available ip and show in a stacked bar chart of 100% which need to show how many percent is used and how many percent unused.

But i am having trouble to group both search and show in a single stacked bar chart. Can anyone help?
Below are both my search string:

search address=192.168.0.0/16 view="Public View" protocol=IPV4 | dedup address
| eval address_left=(address_total-address_reserved-address_alloc)
| eval address_used=(address_reserved+address_alloc)
| stats sum(address_total), sum(address_left), sum(address_used)

search address=192.169.0.0/16 view="Public View" protocol=IPV4 | dedup address
| eval address_left=(address_total-address_reserved-address_alloc)
| eval address_used=(address_reserved+address_alloc)
| stats sum(address_total), sum(address_left), sum(address_used)

0 Karma
Get Updates on the Splunk Community!

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureThursday, March 27, 2025  |  11AM PST / 2PM EST | Register NowStep boldly ...

Splunk AppDynamics with Cisco Secure Application

Web applications unfortunately present a target rich environment for security vulnerabilities and attacks. ...