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 | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...