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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...