Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

How to piechart true false values ,How to create Pie Chart with only true false values

$
0
0
I am working with this search query: `index=lab-testresults type=browser NOT(browser="UK*" OR browser="Firefox") suiteID="*" | stats latest(success) as success by browser noxID | stats count(eval(success="true")) as PassCount count(eval(success="false")) as FailCount count as Total by browser | fields browser, PassCount, FailCount, Total` but when I use the trellis on my visualization, the pie charts only show a single value like this: ![alt text][1] **The Question**: How do I get it so that each of my pie charts shows the correct slice of passes and failures according to the data and not just one field like it is now? [1]: /storage/temp/274860-failedpie.png ,I am working with this search query: `index=lab-testresults type=browser NOT(browser="UK*" OR browser="Firefox") suiteID="*" | stats latest(success) as success by browser noxID | stats count(eval(success="true")) as PassCount count(eval(success="false")) as FailCount count as Total by browser | fields browser, PassCount, FailCount, Total` but everytime I use trellis on a dashboard it shows this: ![alt text][1] This only shows a whole pie chart, but we can see that both counts are there, and adding the Total that we define in the count above also doesnt change the problem. I would like the pie chart to display the passes and the failures as two separate parts of the pie. Is there anyway to do this? (additional context: I am later going to add charting.fieldColors to this pie so that passes are green and failures are red, so any way to do show the two parts of the pie, with labels for passes and fails, and finally adding in the colors would be great!) Thanks! [1]: /storage/temp/274859-failedpie.png

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>