Dashboards & Visualizations

table_cell_highlighting

sarit_s
Communicator

Hello,
I'm using the exapmle script of table_cell_highlighting for highlight cells in some conditions.
Everything is working good but i have one complex condition that i can't resolve.
i have this table :
alt text

And I need to check if the resposeCode is 200 and the value in each one of the 2 other columns is lower than 60 than color in red (for example)

this is the code im using :

if (cell.field === 'ResponseCode') {
                if(cell.field === 200) {

                  if (value < 65) {
                    $td.addClass('range-cell').addClass('range-severe');
                }        

But for some reason its not working.
can someone please help ?

thanks,

Tags (1)
0 Karma

gokadroid
Motivator

Does it have anything to do with more than required = you have been using in your code.

if (cell.field === 'ResponseCode') {
if(cell.field === 200) {

0 Karma

niketn
Legend

Table Cell Highlighting is built in to Splunk 6.5. Please explore that option as well.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

sarit_s
Communicator

we are not working with 6.5 yes, it will take few more month

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