Splunk Search

Radial Gauge valu/max from stats query

astockmeister_s
Explorer

I have a query that returns 2 values
. . . | stats max(gb) as GB by metric_name

metric_nameGB
storage_current99
storage_limit100

 

Now I want to be able to reference the current and limit values in a radial gauge, how can I covert that table into key value pairs so I can say that the value of the radial is "storage_current"?

something like 
|eval {metric_name}={GB}

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Use the transpose command to flip the table.

| stats max(gb) as GB by metric_name
| transpose header_field=metric_name

 

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Use the transpose command to flip the table.

| stats max(gb) as GB by metric_name
| transpose header_field=metric_name

 

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

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

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