Dashboards & Visualizations

Prepare table for stacked barchart

krishman23
Explorer

Im planning to prepare a stacked barchart,

My current table looks like this

ID       |     Request      |       Response

---------------------------------------------

1       |    Req1             |  Success1

2       |    Req1             |  Success32

3       |    Req1             | 

4       |    Req2             |  Success41

5       |    Req2             |  Success21

6       |    Req2             |

7       |    Req2             |  Success22

I need to stack Total Req1 - 3, Req2-4 .... vs Successful response  for Req1 -2 (i.e. Success1,Success32 ) and for Req2 - 3 (Success41,Success21,Success22)

in table form

Req     | Total    |  Success

---------------------------------

Req1  | 3        | 2

Req2 |  4      | 3         

Labels (1)
Tags (2)

ITWhisperer
SplunkTrust
SplunkTrust
| stats count as Total count(eval(like(resp,"Success%"))) as Success by Req
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...