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!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...