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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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