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!

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!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...