<?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 to add icons to a table in Splunk 5? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-icons-to-a-table-in-Splunk-5/m-p/218868#M64319</link>
    <description>&lt;P&gt;See the answer by @Sideview here the same.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/70253/how-to-add-image-in-my-dashboard-panel-along-with-the-result.html"&gt;http://answers.splunk.com/answers/70253/how-to-add-image-in-my-dashboard-panel-along-with-the-result.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Sep 2015 16:27:04 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2015-09-10T16:27:04Z</dc:date>
    <item>
      <title>How to add icons to a table in Splunk 5?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-icons-to-a-table-in-Splunk-5/m-p/218867#M64318</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I want to add icon to a table. I am using Splunk 5.&lt;/P&gt;

&lt;P&gt;My table looks as&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Module    Version    Requests    Errors    Status
xxx         1.1          5          2       green
yyyy        1.0         10          5      yellow
zzzz        2.0         18         10        red
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am using rangemap to show the status = &lt;CODE&gt;|rangemap field=Status green=0-3 yellow=4-9 red=10-100&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Instead of green, yellow, and red, I want to show the icons.&lt;/P&gt;

&lt;P&gt;This is for splunk 5.0&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 15:40:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-icons-to-a-table-in-Splunk-5/m-p/218867#M64318</guid>
      <dc:creator>jagadish85</dc:creator>
      <dc:date>2015-09-10T15:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to add icons to a table in Splunk 5?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-icons-to-a-table-in-Splunk-5/m-p/218868#M64319</link>
      <description>&lt;P&gt;See the answer by @Sideview here the same.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/70253/how-to-add-image-in-my-dashboard-panel-along-with-the-result.html"&gt;http://answers.splunk.com/answers/70253/how-to-add-image-in-my-dashboard-panel-along-with-the-result.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 16:27:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-icons-to-a-table-in-Splunk-5/m-p/218868#M64319</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-09-10T16:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to add icons to a table in Splunk 5?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-icons-to-a-table-in-Splunk-5/m-p/218869#M64320</link>
      <description>&lt;P&gt;This is possible in Splunk 5 if you use the Sideview Utils app.  Make sure to use the latest version from the Sideview site at &lt;A href="http://sideviewapps.com/apps/sideview-utils/" target="_blank"&gt;http://sideviewapps.com/apps/sideview-utils/&lt;/A&gt;   instead of the out of date version on apps.splunk.com. &lt;/P&gt;

&lt;P&gt;Once you follow the download/install instructions and get the app installed,  navigate in the menu to "Module Documentation &amp;gt; Table &amp;gt; Embedding Examples"&lt;/P&gt;

&lt;P&gt;Definitely read that page because it will tell you way more than this, but here's an example for you as well. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="Search"&amp;gt;
   &amp;lt;param name="search"&amp;gt;&amp;lt;![CDATA[
     * | head 1000 | timechart count | delta count as change | eval icon=if(change&amp;gt;0,"sort_asc",if(change&amp;lt;0,"sort_desc","none"))
   ]]&amp;gt;&amp;lt;/param&amp;gt;

   &amp;lt;module name="Table"&amp;gt;
     &amp;lt;module name="HTML" group="row.fields.icon"&amp;gt;
       &amp;lt;param name="html"&amp;gt;&amp;lt;![CDATA[
         &amp;lt;img src="/static/app/sideview_utils/images/arrow_$row.fields.icon$.gif"&amp;gt;
       ]]&amp;gt;&amp;lt;/param&amp;gt;
     &amp;lt;/module&amp;gt;
   &amp;lt;/module&amp;gt;        
 &amp;lt;/module&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Obviously you would modify the example to reference icon images in your own app, but since there are in fact image files in $SPLUNK_HOME/etc/apps/sideview_utils/appserver/static/  called "arrow_sort_asc" and "arrow_sort_desc",  this XML above should work out of the box. &lt;BR /&gt;
Note that while the URL is "/static/app/sideview_utils/images/",  the actual filesystem path is "/etc/apps/sideview_utils/appserver/static/". This tends to confuse everyone so it bears repeating. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:15:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-icons-to-a-table-in-Splunk-5/m-p/218869#M64320</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2020-09-29T07:15:08Z</dc:date>
    </item>
  </channel>
</rss>

