Dashboards & Visualizations

CSS Coloring a Stats Classic Dashboard

a1bg503461
Explorer

I need to color a Dashboard with 3 types of logs in Red, Blue, Yellow as per ERROR , INFO, WARNING

 

So far I managed to integrate below  CSS code in the panel (it colors all rows Blue):

      <html>
      <style type="text/css">
        
.table-colored .table-row, td{
color:blue;
}
</style>
      </html>



Does anyone know how to add conditions based on CELL Values e.g. if Cell = INFO -> Blue ,if Cell = ERROR -> Red , if Cell = WARNING -> Yellow

Labels (2)
0 Karma

PaulPanther
Motivator

You can do it easierwith following config:

        <format type="color" field="categoryId">
          <colorPalette type="map">{"ACCESSORIES":#6DB7C6,"ARCADE":#F7BC38,"STRATEGY":#AFEEEE}</colorPalette>
        </format>

https://docs.splunk.com/Documentation/SplunkCloud/latest/Viz/TableFormatsXML#Table_format_source_cod... 

a1bg503461
Explorer

thanks but this colors the background of the cell i need to color the font only

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

No matter how many times you ask in different posts, there currently isn't any easy way to do what you are asking for.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...