Splunk Search

Problem with Pie Chart

strive
Influencer

Hi,

I read through the pie chart docs in splunk. I am not able to customize it to my needs.

My Search query is:

first search part | stats sum(A) as Total A, sum(B) as Total B

A and B are two separate fields in summary index.

The result set looks like this:

A   B
10  20

To display this as pie chart, i need the result set as

Label   Value
 A       10
 B       20

What can i pipe to my search query so that i get result set as mentioned above.

Thanks

Strive

Tags (2)
0 Karma
1 Solution

strive
Influencer

I did it. I used |transpose and it worked.

View solution in original post

strive
Influencer

I did it. I used |transpose and it worked.

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