Dashboards & Visualizations

One-dimensional bar charts

helge
Builder

I have a single row with, say, three values. I want to visualize these values using a bar chart so that the user can easiliy see the differences between the values.

However, it does not seem to be possible to display such "one-dimensional" charts. I guess I must be missing something.

Example:

This (sample) search yields one row with three values:

index=_internal source="*metrics.log" group=per_sourcetype_thruput | stats avg(kb) median(kb) min(kb)

I want it displayed similar to this.

Is that possible? If so, how?

0 Karma
1 Solution

jonuwz
Influencer

Try this :

index=_internal source="*metrics.log" group=per_sourcetype_thruput | stats avg(kb) as avg median(kb) as median min(kb) as min | untable ignore metric value | fields - ignore

or

index=_internal source="*metrics.log" group=per_sourcetype_thruput | stats avg(kb) as avg median(kb) as median min(kb) as min | transpose | rename column as metric "row 1" as value

View solution in original post

jonuwz
Influencer

Try this :

index=_internal source="*metrics.log" group=per_sourcetype_thruput | stats avg(kb) as avg median(kb) as median min(kb) as min | untable ignore metric value | fields - ignore

or

index=_internal source="*metrics.log" group=per_sourcetype_thruput | stats avg(kb) as avg median(kb) as median min(kb) as min | transpose | rename column as metric "row 1" as value

helge
Builder

Interesting, thank you!

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

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