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!

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 ...

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...