<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I add ICONS to a table in a Splunk dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-ICONS-to-a-table-in-a-Splunk-dashboard/m-p/383701#M25165</link>
    <description>&lt;P&gt;@darshana2511, what changes have you done in your JavaScript file? If possible please share code snippet for the changes (Mock/anonymize any sensitive information).&lt;/P&gt;</description>
    <pubDate>Tue, 13 Nov 2018 15:05:51 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-11-13T15:05:51Z</dc:date>
    <item>
      <title>How do I add ICONS to a table in a Splunk dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-ICONS-to-a-table-in-a-Splunk-dashboard/m-p/383699#M25163</link>
      <description>&lt;P&gt;I refered the example of Table Icon Set (Inline). But I do not have count function in my Query. I am attaching my query below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="ad_dns_new" sourcetype="resolve_json"|eval k=strptime(DateTime,"%Y-%m-%dT%H:%M:%S")|eval New_Date=strftime(k,"%d-%m-%Y") | table HealthCheck,Result,New_Date,Customer|chart values(Result) as Result over HealthCheck by New_Date
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and I need Icons if result value is PASS then icon = 'check-circle' and if result value is Fail then icon='alert-circle'.&lt;/P&gt;

&lt;P&gt;What changes do I need in my JavaScript file? I already made some changes, but it is not working. Please help me as I am new to Splunk.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 11:30:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-ICONS-to-a-table-in-a-Splunk-dashboard/m-p/383699#M25163</guid>
      <dc:creator>darshana2511</dc:creator>
      <dc:date>2018-11-13T11:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add ICONS to a table in a Splunk dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-ICONS-to-a-table-in-a-Splunk-dashboard/m-p/383700#M25164</link>
      <description>&lt;P&gt;This blog post should provide some pointers for you &lt;A href="https://www.splunk.com/blog/2014/03/17/custom-icons-in-splunk-6-tables.html"&gt;https://www.splunk.com/blog/2014/03/17/custom-icons-in-splunk-6-tables.html&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 13:35:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-ICONS-to-a-table-in-a-Splunk-dashboard/m-p/383700#M25164</guid>
      <dc:creator>msivill_splunk</dc:creator>
      <dc:date>2018-11-13T13:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add ICONS to a table in a Splunk dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-ICONS-to-a-table-in-a-Splunk-dashboard/m-p/383701#M25165</link>
      <description>&lt;P&gt;@darshana2511, what changes have you done in your JavaScript file? If possible please share code snippet for the changes (Mock/anonymize any sensitive information).&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 15:05:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-ICONS-to-a-table-in-a-Splunk-dashboard/m-p/383701#M25165</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-11-13T15:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add ICONS to a table in a Splunk dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-ICONS-to-a-table-in-a-Splunk-dashboard/m-p/383702#M25166</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;var CustomIconRenderer = TableView.BaseCellRenderer.extend({
    canRender: function(cell) {
        return cell.field === 'Result';
    },
    render: function($td, cell) {
        var Result = cell.value;

        // Compute the icon base on the field value
        var icon;
        if(Result == "Fail") {
            icon = 'alert-circle';
        } else if(Result == "PASS") {
            icon = 'check';
        } else {
            icon = 'alert';
        }

        // Create the icon element and add it to the table cell
        $td.addClass('icon-inline numeric').html(_.template('&amp;lt;%- text %&amp;gt; &amp;lt;i class="icon-&amp;lt;%-icon%&amp;gt;"&amp;gt;&amp;lt;/i&amp;gt;', {
            icon: icon,
            text: cell.value
        }));
    }
});

mvc.Components.get('table1').getVisualization(function(tableView){
    // Register custom cell renderer, the table will re-render automatically
    tableView.addCellRenderer(new CustomIconRenderer());
});
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;});&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 15:15:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-ICONS-to-a-table-in-a-Splunk-dashboard/m-p/383702#M25166</guid>
      <dc:creator>darshana2511</dc:creator>
      <dc:date>2018-11-13T15:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add ICONS to a table in a Splunk dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-ICONS-to-a-table-in-a-Splunk-dashboard/m-p/383703#M25167</link>
      <description>&lt;P&gt;I want to know what can I use instead of rangemap. as I do not have count function in my query.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 15:16:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-ICONS-to-a-table-in-a-Splunk-dashboard/m-p/383703#M25167</guid>
      <dc:creator>darshana2511</dc:creator>
      <dc:date>2018-11-13T15:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add ICONS to a table in a Splunk dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-ICONS-to-a-table-in-a-Splunk-dashboard/m-p/383704#M25168</link>
      <description>&lt;P&gt;what should I use instead of rangemap in my query? as I do not have count function in my query.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 15:17:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-ICONS-to-a-table-in-a-Splunk-dashboard/m-p/383704#M25168</guid>
      <dc:creator>darshana2511</dc:creator>
      <dc:date>2018-11-13T15:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add ICONS to a table in a Splunk dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-ICONS-to-a-table-in-a-Splunk-dashboard/m-p/383705#M25169</link>
      <description>&lt;P&gt;Do you have any idea how to do it?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 14:49:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-add-ICONS-to-a-table-in-a-Splunk-dashboard/m-p/383705#M25169</guid>
      <dc:creator>darshana2511</dc:creator>
      <dc:date>2018-11-14T14:49:32Z</dc:date>
    </item>
  </channel>
</rss>

