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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...