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!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

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

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

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