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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...