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!

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