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!

Fall Into Learning with New Splunk Education Courses

Every month, Splunk Education releases new courses to help you branch out, strengthen your data science roots, ...

Super Optimize your Splunk Stats Searches: Unlocking the Power of tstats, TERM, and ...

By Martin Hettervik, Senior Consultant and Team Leader at Accelerate at Iver, Splunk MVPThe stats command is ...

How Splunk Observability Cloud Prevented a Major Payment Crisis in Minutes

Your bank's payment processing system is humming along during a busy afternoon, handling millions in hourly ...