<?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 GEOSTATS Rename value in piechart in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-Rename-value-in-piechart/m-p/500569#M32792</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Is it possible to change the 'name' of the value in a pie chart displayed on a geostats map? The below example shows the piechart. The blue 1 indicate that there are 4 devices with that status. One device with status 14 and 1 with status 3. I have been trying the change the numbers into a readable status. 1=UP,3=WARNING,14=Critical but for some reason I don't seem to make it possible. &lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8580i98DF9679E9B3D831/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;This is the SPL creating the worldmap&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="xxx" Splunk_Node=true
| stats latest(Latitude) as Latitude, latest(Longitude) as Longitude, latest(Node_Status) as Node_Status by NodeID
| geostats count(NodeID) by Node_Status latfield=Latitude longfield=Longitude
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Been trying the below. Added this line and change the SPL from Node_Status to NodeStatus but then the map stays empty. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval NodeStatus = if(NodeStatus=1,"UP",if(NodeStatus=2,"DOWN",if(NodeStatus=3,"WARNING",if(NodeStatus=14,"CRITICAL",isnull)))) `comment("Change the status number to something readable")`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Someone any thoughts on this? &lt;/P&gt;</description>
    <pubDate>Thu, 26 Mar 2020 10:36:26 GMT</pubDate>
    <dc:creator>wbolten</dc:creator>
    <dc:date>2020-03-26T10:36:26Z</dc:date>
    <item>
      <title>GEOSTATS Rename value in piechart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-Rename-value-in-piechart/m-p/500569#M32792</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Is it possible to change the 'name' of the value in a pie chart displayed on a geostats map? The below example shows the piechart. The blue 1 indicate that there are 4 devices with that status. One device with status 14 and 1 with status 3. I have been trying the change the numbers into a readable status. 1=UP,3=WARNING,14=Critical but for some reason I don't seem to make it possible. &lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8580i98DF9679E9B3D831/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;This is the SPL creating the worldmap&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="xxx" Splunk_Node=true
| stats latest(Latitude) as Latitude, latest(Longitude) as Longitude, latest(Node_Status) as Node_Status by NodeID
| geostats count(NodeID) by Node_Status latfield=Latitude longfield=Longitude
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Been trying the below. Added this line and change the SPL from Node_Status to NodeStatus but then the map stays empty. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval NodeStatus = if(NodeStatus=1,"UP",if(NodeStatus=2,"DOWN",if(NodeStatus=3,"WARNING",if(NodeStatus=14,"CRITICAL",isnull)))) `comment("Change the status number to something readable")`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Someone any thoughts on this? &lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 10:36:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-Rename-value-in-piechart/m-p/500569#M32792</guid>
      <dc:creator>wbolten</dc:creator>
      <dc:date>2020-03-26T10:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: GEOSTATS Rename value in piechart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-Rename-value-in-piechart/m-p/500570#M32793</link>
      <description>&lt;P&gt;This should do it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="xxx" Splunk_Node=true
| eval Node_Status = case (Node_Status=1, "UP", Node_Status=2, "DOWN", Node_Status=3, "WARNING", Node_Status=4, "CRITICAL", 1==1, "OTHER")
| stats latest(Latitude) as Latitude, latest(Longitude) as Longitude, latest(Node_Status) as Node_Status by NodeID
| geostats count(NodeID) by Node_Status latfield=Latitude longfield=Longitude
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Mar 2020 13:01:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-Rename-value-in-piechart/m-p/500570#M32793</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-26T13:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: GEOSTATS Rename value in piechart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-Rename-value-in-piechart/m-p/500571#M32794</link>
      <description>&lt;P&gt;Yep, that has done it. Many thanks. Did not occur to me to use case for this.&lt;/P&gt;

&lt;P&gt;I corrected a typo in the CRITICAL part. The status number is 14 and not 4 but it works perfectly. &lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 13:12:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/GEOSTATS-Rename-value-in-piechart/m-p/500571#M32794</guid>
      <dc:creator>wbolten</dc:creator>
      <dc:date>2020-03-26T13:12:45Z</dc:date>
    </item>
  </channel>
</rss>

