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!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...