Splunk Search

How to highlight a cell in a table

atiruval
New Member

I have a table and one of the column is for URLs. I want to highlight the URLs in blue color. Please let me know how can we do it.

Tags (3)
0 Karma

splunk_force_as
Path Finder

If you want to do cell highlighting, that would require some JS and CSS. I would use the code found in the splunk 6.x dashboard examples app: https://splunkbase.splunk.com/app/1603/. The app contains some neat dashboard customizations that are pretty cool. Typically, if you are using the drill-down feature in your table, specifically for that field, by default the URLS should already be blue: http://docs.splunk.com/Documentation/Splunk/6.4.1/Viz/Dynamicdrilldownindashboardsandforms. Finally, you could change the font-color, by doing an inspect element to find the id or class and overriding the default color with css.

0 Karma

robettinger
Explorer

Quick question about this ... in the js script:

        // Update the cell content
        $td.text(value.toFixed(2)).addClass('numeric');

Does this mean it can only apply to numeric values/fields? What if I want to compare strings, such as OK or ERROR?

Thanks ...

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