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!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...