Dashboards & Visualizations

How to calculate the percent of a value from total?

JohnnyMnemonic
Explorer

Hi splunkers,

I thought it would be easier, but now I need to ask you for help.

I need to make a simple tart chart with the percent of an IP Address and the percent of all other together as "Other".

How can I group all values in a single value "other" but leaving out just the value I want to analyze?

Thanks!

Labels (3)
Tags (1)
0 Karma
1 Solution

SanjayReddy
SplunkTrust
SplunkTrust

Hi @JohnnyMnemonic 

are you expecting output like below , then please use pie chart

SanjayReddy_0-1646741305564.png

have you condsied using cidrmatch?. 

SanjayReddy_1-1646742258149.png

 

View solution in original post

JohnnyMnemonic
Explorer

I am currently using this query but it seems a bit hard for the search head:

index=logs sourcetype=more_logs dest_ip=*
| eval address=IF(LIKE(dest_ip, "0.0.0.0"), "YES", "OTHER")
| stats count by address

0 Karma

SanjayReddy
SplunkTrust
SplunkTrust

Hi @JohnnyMnemonic 

are you expecting output like below , then please use pie chart

SanjayReddy_0-1646741305564.png

have you condsied using cidrmatch?. 

SanjayReddy_1-1646742258149.png

 

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 ...