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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...