- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
astockmeister_s
Explorer
01-25-2024
08:58 AM
I have a query that returns 2 values
. . . | stats max(gb) as GB by metric_name
metric_name | GB |
storage_current | 99 |
storage_limit | 100 |
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}
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

richgalloway

SplunkTrust
01-25-2024
10:57 AM
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.
If this reply helps you, Karma would be appreciated.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

richgalloway

SplunkTrust
01-25-2024
10:57 AM
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.
If this reply helps you, Karma would be appreciated.
