<?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: Cluster Map doesnt show correct events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Cluster-Map-doesnt-show-correct-events/m-p/297999#M89879</link>
    <description>&lt;P&gt;@michel_wolf, I think this is a known behavior which I had noticed even in Splunk 6.4. So this might have existed for a long time now. If you have valid Splunk Entitlement, you can open a BUG request for this (&lt;A href="http://www.splunk.com/r/bugs"&gt;http://www.splunk.com/r/bugs&lt;/A&gt;).&lt;/P&gt;

&lt;P&gt;Until it is resolved you can try the following alternative to use &lt;CODE&gt;depends&lt;/CODE&gt; and &lt;CODE&gt;rejects&lt;/CODE&gt;attributes in Simple XML dashboard to hide map and show a custom message (using HTML Panel in Simple XML) instead.&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/3630i38B77FB9C6FD2D91/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;Using &lt;CODE&gt;&amp;lt;done&amp;gt;&lt;/CODE&gt; search event handler, default job token &lt;CODE&gt;$job.resultCount$&lt;/CODE&gt; is accessed to confirm whether the search resturened result or not. If no results returned then token &lt;CODE&gt;$tokPlotDataOnMap$&lt;/CODE&gt; is unset else it is set to true.&lt;/P&gt;

&lt;P&gt;When &lt;CODE&gt;$tokPlotDataOnMap$&lt;/CODE&gt; is set the map is displayed using &lt;CODE&gt;depends&lt;/CODE&gt; attribute and when it is unset, the Map is hidden and HTML Panel is displayed using &lt;CODE&gt;rejects&lt;/CODE&gt; attribute.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Cluster Map Results and then No Results through filter&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="tokTime"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;map depends="$tokPlotDataOnMap$"&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;source="access.log" host="NiketNilay-PC" sourcetype="access_combined_wcookie"
| stats count by clientip method
| iplocation clientip
| geostats latfield=lat longfield=lon sum(count) by method&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$tokTime.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$tokTime.latest$&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;condition match="$job.resultCount$==0"&amp;gt;
              &amp;lt;unset token="tokPlotDataOnMap"&amp;gt;&amp;lt;/unset&amp;gt;              
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition&amp;gt;
              &amp;lt;set token="tokPlotDataOnMap"&amp;gt;true&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
          &amp;lt;/done&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.choroplethLayer.colorBins"&amp;gt;5&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.choroplethLayer.colorMode"&amp;gt;auto&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.choroplethLayer.maximumColor"&amp;gt;0xDB5800&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.choroplethLayer.minimumColor"&amp;gt;0x2F25BA&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.choroplethLayer.neutralPoint"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.choroplethLayer.shapeOpacity"&amp;gt;0.75&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.choroplethLayer.showBorder"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.data.maxClusters"&amp;gt;100&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.legend.placement"&amp;gt;bottomright&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.map.center"&amp;gt;(0,0)&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.map.panning"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.map.scrollZoom"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.map.zoom"&amp;gt;2&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.markerLayer.markerMaxSize"&amp;gt;50&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.markerLayer.markerMinSize"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.markerLayer.markerOpacity"&amp;gt;0.8&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.showTiles"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.tileLayer.maxZoom"&amp;gt;7&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.tileLayer.minZoom"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.tileLayer.tileOpacity"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.type"&amp;gt;marker&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.scales.shared"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.size"&amp;gt;medium&amp;lt;/option&amp;gt;
      &amp;lt;/map&amp;gt;
      &amp;lt;html rejects="$tokPlotDataOnMap$"&amp;gt;
        &amp;lt;div style="font-weight:bold;text-align:center;color:red;"&amp;gt;No Results Found to plot on Map. Please select a wider date range&amp;lt;/div&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: Above dashboard code is based on Splunk Tutorial Data for Buttercup Games, which is refreshed weekly at the following link: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchTutorial/Systemrequirements#Download_the_tutorial_data_files"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchTutorial/Systemrequirements#Download_the_tutorial_data_files&lt;/A&gt;&lt;BR /&gt;
Please following instructions to load the data first. I have loaded the same to Splunk's main (default) index.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Oct 2017 18:35:23 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-10-05T18:35:23Z</dc:date>
    <item>
      <title>Cluster Map doesnt show correct events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cluster-Map-doesnt-show-correct-events/m-p/297998#M89878</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;

&lt;P&gt;I have a problem with the "Cluster Map" so I have add a log 2 weeks ago and when I do a search about the last 6 weeks the "Cluster Map" shows me the right results, but if i lower the time range picker for example to the last 15 seconds where cant be any results, because I upload a static log and have no activ monitor on this file.&lt;/P&gt;

&lt;P&gt;I got the same results which I had before I decrease the time range picker and the job inspector says to me there are no results in this time range.&lt;/P&gt;

&lt;P&gt;This search has completed in 0.276 seconds, but did not match any events. The terms specified in the highlighted portion of the search:&lt;BR /&gt;
search (source="otrs.log" remote_addr:) | rex field=remote_addr "(?&lt;SUBNET&gt;\d+.\d+.\d+).\d+" | iplocation remote_addr | geostats count&lt;BR /&gt;&lt;BR /&gt;
over the time range: 10/5/17 4:33:27.000 PM - 10/5/17 4:33:42.000 PM&lt;/SUBNET&gt;&lt;/P&gt;

&lt;P&gt;But I get this map:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/216708-sample.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;If i extend the time pick ranger to "all time" and decrease it again to the last 15 seconds it will show me the results from the "all time" search, but if I decrease it to the last 6 weeks like in my sample picture I got the right results like above.&lt;BR /&gt;
For me it looks like the visualisation dosnt change if I got zero events.&lt;/P&gt;

&lt;P&gt;So I dont know if it is a bug in 6.6.3 and 7.0 or if something wrong with my search.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:10:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cluster-Map-doesnt-show-correct-events/m-p/297998#M89878</guid>
      <dc:creator>michel_wolf</dc:creator>
      <dc:date>2020-09-29T16:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Map doesnt show correct events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cluster-Map-doesnt-show-correct-events/m-p/297999#M89879</link>
      <description>&lt;P&gt;@michel_wolf, I think this is a known behavior which I had noticed even in Splunk 6.4. So this might have existed for a long time now. If you have valid Splunk Entitlement, you can open a BUG request for this (&lt;A href="http://www.splunk.com/r/bugs"&gt;http://www.splunk.com/r/bugs&lt;/A&gt;).&lt;/P&gt;

&lt;P&gt;Until it is resolved you can try the following alternative to use &lt;CODE&gt;depends&lt;/CODE&gt; and &lt;CODE&gt;rejects&lt;/CODE&gt;attributes in Simple XML dashboard to hide map and show a custom message (using HTML Panel in Simple XML) instead.&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/3630i38B77FB9C6FD2D91/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;Using &lt;CODE&gt;&amp;lt;done&amp;gt;&lt;/CODE&gt; search event handler, default job token &lt;CODE&gt;$job.resultCount$&lt;/CODE&gt; is accessed to confirm whether the search resturened result or not. If no results returned then token &lt;CODE&gt;$tokPlotDataOnMap$&lt;/CODE&gt; is unset else it is set to true.&lt;/P&gt;

&lt;P&gt;When &lt;CODE&gt;$tokPlotDataOnMap$&lt;/CODE&gt; is set the map is displayed using &lt;CODE&gt;depends&lt;/CODE&gt; attribute and when it is unset, the Map is hidden and HTML Panel is displayed using &lt;CODE&gt;rejects&lt;/CODE&gt; attribute.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Cluster Map Results and then No Results through filter&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="tokTime"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;map depends="$tokPlotDataOnMap$"&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;source="access.log" host="NiketNilay-PC" sourcetype="access_combined_wcookie"
| stats count by clientip method
| iplocation clientip
| geostats latfield=lat longfield=lon sum(count) by method&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$tokTime.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$tokTime.latest$&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;condition match="$job.resultCount$==0"&amp;gt;
              &amp;lt;unset token="tokPlotDataOnMap"&amp;gt;&amp;lt;/unset&amp;gt;              
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition&amp;gt;
              &amp;lt;set token="tokPlotDataOnMap"&amp;gt;true&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
          &amp;lt;/done&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.choroplethLayer.colorBins"&amp;gt;5&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.choroplethLayer.colorMode"&amp;gt;auto&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.choroplethLayer.maximumColor"&amp;gt;0xDB5800&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.choroplethLayer.minimumColor"&amp;gt;0x2F25BA&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.choroplethLayer.neutralPoint"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.choroplethLayer.shapeOpacity"&amp;gt;0.75&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.choroplethLayer.showBorder"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.data.maxClusters"&amp;gt;100&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.legend.placement"&amp;gt;bottomright&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.map.center"&amp;gt;(0,0)&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.map.panning"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.map.scrollZoom"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.map.zoom"&amp;gt;2&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.markerLayer.markerMaxSize"&amp;gt;50&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.markerLayer.markerMinSize"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.markerLayer.markerOpacity"&amp;gt;0.8&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.showTiles"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.tileLayer.maxZoom"&amp;gt;7&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.tileLayer.minZoom"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.tileLayer.tileOpacity"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="mapping.type"&amp;gt;marker&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.scales.shared"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="trellis.size"&amp;gt;medium&amp;lt;/option&amp;gt;
      &amp;lt;/map&amp;gt;
      &amp;lt;html rejects="$tokPlotDataOnMap$"&amp;gt;
        &amp;lt;div style="font-weight:bold;text-align:center;color:red;"&amp;gt;No Results Found to plot on Map. Please select a wider date range&amp;lt;/div&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: Above dashboard code is based on Splunk Tutorial Data for Buttercup Games, which is refreshed weekly at the following link: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchTutorial/Systemrequirements#Download_the_tutorial_data_files"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchTutorial/Systemrequirements#Download_the_tutorial_data_files&lt;/A&gt;&lt;BR /&gt;
Please following instructions to load the data first. I have loaded the same to Splunk's main (default) index.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 18:35:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cluster-Map-doesnt-show-correct-events/m-p/297999#M89879</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-10-05T18:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Map doesnt show correct events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cluster-Map-doesnt-show-correct-events/m-p/298000#M89880</link>
      <description>&lt;P&gt;could you please tell me How to resolve this issue?is there any patch available for the same&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 08:15:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cluster-Map-doesnt-show-correct-events/m-p/298000#M89880</guid>
      <dc:creator>ajitshukla61116</dc:creator>
      <dc:date>2019-04-10T08:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster Map doesnt show correct events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cluster-Map-doesnt-show-correct-events/m-p/577848#M201364</link>
      <description>&lt;P&gt;the issue is still happening in the current version of splunk.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;option name="mapping.map.center"&amp;gt;($lat$,$lon$)&amp;lt;/option&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution for this that worked but is a pain - someone from another post.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dsouza_home_1-1639027605798.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17160i59F58BC5BF61A6B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dsouza_home_1-1639027605798.png" alt="dsouza_home_1-1639027605798.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;click cancel&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dsouza_home_0-1639027566967.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17159iEE5CC19DEC0BC452/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dsouza_home_0-1639027566967.png" alt="dsouza_home_0-1639027566967.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so now instead if the a blank right map , it all works click on japan and it can see the right map center and zoom to jp lat lon.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dsouza_home_2-1639027751253.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17161i830D83D40A8122E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dsouza_home_2-1639027751253.png" alt="dsouza_home_2-1639027751253.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 05:40:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cluster-Map-doesnt-show-correct-events/m-p/577848#M201364</guid>
      <dc:creator>dsouza_home</dc:creator>
      <dc:date>2021-12-09T05:40:21Z</dc:date>
    </item>
  </channel>
</rss>

