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.
Get Updates on the Splunk Community!

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...

Community Content Calendar, September edition

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