Dashboards & Visualizations

How to color table cell on dashboard based on value?

ataunk
Explorer

We following Dashboard Source code :-

<dashboard>
  <label>test_2</label>
  <row>
    <panel>
      <table>
        <search>
          <query>host="ww-fgrzdc2" | eval BadFetch=if(match(_raw,"error.badfetch"),1,0) | timechart count(CALLID) as callCount, count(BadFetch) as BadFetch</query>
          <earliest>-7d@h</earliest>
          <latest>now</latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="count">20</option>
        <option name="dataOverlayMode">none</option>
        <option name="drilldown">none</option>
        <option name="percentagesRow">false</option>
        <option name="rowNumbers">false</option>
        <option name="totalsRow">false</option>
        <option name="wrap">true</option>
      </table>
    </panel>
  </row>
</dashboard>

I want to highlight individual cell depending on Value. I have tried couple of JS and Css but none worked. In that they have used table. But, I am using timechart, which in turn is rendering a table..Not sure how to do. Please help..

0 Karma
1 Solution

niketn
Legend

@ataunk, refer to Splunk Documentation

Formatting through Splunk Web UI: http://docs.splunk.com/Documentation/Splunk/latest/Viz/TableFormatsFormatting#Format_table_columns

Or through Simple XML: http://docs.splunk.com/Documentation/Splunk/latest/Viz/TableFormatsXML

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"

View solution in original post

0 Karma

niketn
Legend

@ataunk, refer to Splunk Documentation

Formatting through Splunk Web UI: http://docs.splunk.com/Documentation/Splunk/latest/Viz/TableFormatsFormatting#Format_table_columns

Or through Simple XML: http://docs.splunk.com/Documentation/Splunk/latest/Viz/TableFormatsXML

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

niketn
Legend

@ataunk I have converted my comment to answer. Please accept to mark this question as answered.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

niketn
Legend

Which version of Splunk are you on? Can you add sample of data in your table with field names and also what are the color ranges based on value.

Coloring by Table cell value is inbuilt to Splunk 6.5 onward (in Simple XML dashboard). Refer to Splunk 6.x Dashboard Examples App from Splunkbase.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

ataunk
Explorer

Splunk Version -- 6.5.3.1

_time callCount BadFetch
Value Value
Value Value
Value Value
Value Value
Value Value

I do not see it ?where do we have that feature ?

0 Karma

ataunk
Explorer

Also, I did install the plugin from https://splunkbase.splunk.com/app/1603/

But, do not see any option when I click on edit the dashboard..

0 Karma
Get Updates on the Splunk Community!

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud  In today’s fast-paced digital ...

Observability protocols to know about

Observability protocols define the specifications or formats for collecting, encoding, transporting, and ...

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...