Splunk Search

Coloring a stats table value based on condition

shabdadev
Engager

Hi ALL,

I have this url

URL                                           ResponseTime
/wcs/resources/store/10151/storelocation/v1_0   300

I want to compare the response time to SLA ( 500 ) and color the value based on below condition.
If Response time is greater than 500 ... color the '300' as .RED
If Response time is less than 500 ......color the '300'as Green

In Splunk since i have user level access , is it possible to color code the value by making changes in source code XML without writing any CSS .?? If yes how ??

0 Karma

andrey2007
Contributor

Try to use standard color options for table: Color>Ranges

http://docs.splunk.com/Documentation/Splunk/latest/Viz/TableFormatsFormatting

0 Karma

shabdadev
Engager

Thanks....
I Already applied this option.
But consider a situation where i have different URL's with different SLA's
and just on the basis of comparison of response time with SLA .....i want to make the values RED or green

then how do you suggest to resolve this ???

0 Karma
Get Updates on the Splunk Community!

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

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...