Dashboards & Visualizations

Pie chart from multiple queries

shreyad
Explorer

I want to create a pie chart for a dashboard, but I would like each piece of the pie to be the results from separate queries. How do I achieve that?

Tags (2)
0 Karma

PowerPacked
Builder

Hi @shreyad

I believe whole Pie is considered as 100% in which each value takes some percentage by calculating its quantity on the whole.
bringing pieces from individual queries should not be the case.

Thanks

0 Karma

pradeepkumarg
Influencer

How do your individual queries look like? You can combine all your individual queries into one search and then run statistics on the result set to generate a piechart

Eg:

  mysearch1 |table field1 count | append [mysearch2 |table field1 count ] | append [mysearch3 |table field1 count] | stats sum(count) by field1

0 Karma
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...