Splunk Search

How does one create a pie chart that would result in 3 equal pie slices?

fdswitch
Explorer

I'm logging memory stats, and I have fields like "mem_free", "mem_used", and "mem_cache" that represent memory in MB.

Let's assume all three of these avg(fields) value is 33. How does one create a pie chart that would result in 3 equal pie slices?

0 Karma
1 Solution

woodcock
Esteemed Legend

Just add transpose, maybe something like this:

... | stats last(mem_*) AS mem_* | transpose

View solution in original post

woodcock
Esteemed Legend

Just add transpose, maybe something like this:

... | stats last(mem_*) AS mem_* | transpose

cmerriman
Super Champion

if they DON'T have equal values and, for whatever reason, you still want them to have equal slices, I'd create a dummy variable.

| stats last(mem_*) AS mem_* |transpose|eval column=column+" - "+'row 1'|eval sliceSize=33|fields - "row 1"

fdswitch
Explorer

I'm not trying to force 3 equal slices, moderator changed my topic. But useful information none the less, thanks.

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...