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

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...