Dashboards & Visualizations

Bar Chart Splunk6

xisura
Communicator

Hi!

Is there a way in splunk 6 to change the color of the bar graph based on the search result like in rangemap??

Thanks in Advanced!
Jarize

Tags (2)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

You can do something like this:

some search | timechart avg(some_value) as avg | eval green = case(avg < 50, avg) | eval yellow = case(avg < 80, avg) | eval red = case(avg >= 80, avg) | fields - avg

Display the resulting chart as a stacked column chart, and set the colors to green, yellow and red.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

You can do something like this:

some search | timechart avg(some_value) as avg | eval green = case(avg < 50, avg) | eval yellow = case(avg < 80, avg) | eval red = case(avg >= 80, avg) | fields - avg

Display the resulting chart as a stacked column chart, and set the colors to green, yellow and red.

Get Updates on the Splunk Community!

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

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...