<?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: server status on dashboard in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/server-status-on-dashboard/m-p/517449#M145507</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223364"&gt;@sphiwee&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you can see in Dashboard Examples (&lt;A href="https://splunkbase.splunk.com/app/1603/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;) in the "Table Icon Set (Rangemap)" dashboard how to display status using an icon instead a value.&lt;/P&gt;&lt;P&gt;In few words, you have to add to your app a css and a js (that you can find in Dashboard Examples) called by the dashboard&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form script="table_icons_rangemap.js" stylesheet="table_decorations.css"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then you have to assign an id at your table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;table id="table1"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the end, you have to add to your search the rangemap command, something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=intau_workfusion host=*
| stats dc(ClusStatus) AS statuses BY host
| rangemap field=statuses severe=0-1 low=2-1000000000 default=severe
| table host range&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this way if statuses=0 or 1 you have a red icon and statuses&amp;gt;1 you have a green icon.&lt;/P&gt;&lt;P&gt;if you want to change the name of the range column, you have to modify also the&amp;nbsp;table_icons_rangemap.js file.&lt;/P&gt;&lt;P&gt;Remember to restart Splunk after you added css and js to the app and reload the page at every change in the dashboard otherwise you don't see the icons.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 02 Sep 2020 09:54:49 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-09-02T09:54:49Z</dc:date>
    <item>
      <title>server status on dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/server-status-on-dashboard/m-p/517445#M145505</link>
      <description>&lt;P&gt;Good day everyone&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I visualize and edit this query to show the status of our servers, ONLINE/OFFLINE ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sphiwee_0-1599039265647.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10607i1ED3980E9739C4DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sphiwee_0-1599039265647.png" alt="sphiwee_0-1599039265647.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 09:35:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/server-status-on-dashboard/m-p/517445#M145505</guid>
      <dc:creator>sphiwee</dc:creator>
      <dc:date>2020-09-02T09:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: server status on dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/server-status-on-dashboard/m-p/517449#M145507</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223364"&gt;@sphiwee&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you can see in Dashboard Examples (&lt;A href="https://splunkbase.splunk.com/app/1603/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;) in the "Table Icon Set (Rangemap)" dashboard how to display status using an icon instead a value.&lt;/P&gt;&lt;P&gt;In few words, you have to add to your app a css and a js (that you can find in Dashboard Examples) called by the dashboard&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form script="table_icons_rangemap.js" stylesheet="table_decorations.css"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then you have to assign an id at your table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;table id="table1"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the end, you have to add to your search the rangemap command, something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=intau_workfusion host=*
| stats dc(ClusStatus) AS statuses BY host
| rangemap field=statuses severe=0-1 low=2-1000000000 default=severe
| table host range&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this way if statuses=0 or 1 you have a red icon and statuses&amp;gt;1 you have a green icon.&lt;/P&gt;&lt;P&gt;if you want to change the name of the range column, you have to modify also the&amp;nbsp;table_icons_rangemap.js file.&lt;/P&gt;&lt;P&gt;Remember to restart Splunk after you added css and js to the app and reload the page at every change in the dashboard otherwise you don't see the icons.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 09:54:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/server-status-on-dashboard/m-p/517449#M145507</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-02T09:54:49Z</dc:date>
    </item>
  </channel>
</rss>

