Splunk Search

Table into single value

mauricio2354
Explorer

I have a table like below:

Service Failure_Count Failure_Rate
AAA 200 96
BBB 100 56
CCC 20 33

alt text

I'd like, instead of a table, to show all this information as a single-value red box without rows, but displays all this information like so:

AAA (200, 96%)
BBB (100, 56%)
CCC (20, 33%)

alt text

I've attached an image for clarification. Thanks!

0 Karma
1 Solution

damiensurat
Contributor

The single value panel isn't natively built to display data in this way. You can however come up with some creative ways of handling this:
Continue to use table, but concat all of your fields into one column:

yoursearch | eval singleValue = SERVICE." "."(".failure_count.",".failure_rate."%".")" | fields singleValue

and then limit the size and with of the panel

or perhaps a different vis app:

https://splunkbase.splunk.com/app/3380/#/details

View solution in original post

0 Karma

niketn
Legend

@mauricio2354, refer to one of my answers to use Single Value or Status Indicator with Trellis Layout to display this kind of information with Count, Percent, Icon And Color along with Drilldown (JavaScript Drilldown will be required for Status Indicator).

https://answers.splunk.com/answers/590581/refresh-data-in-table-by-collecting-token-on-click.html

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

damiensurat
Contributor

The single value panel isn't natively built to display data in this way. You can however come up with some creative ways of handling this:
Continue to use table, but concat all of your fields into one column:

yoursearch | eval singleValue = SERVICE." "."(".failure_count.",".failure_rate."%".")" | fields singleValue

and then limit the size and with of the panel

or perhaps a different vis app:

https://splunkbase.splunk.com/app/3380/#/details

0 Karma

mauricio2354
Explorer

Thanks, this helped!

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...