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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...