<?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: MapIt doesn't map it in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/MapIt-doesn-t-map-it/m-p/135136#M11305</link>
    <description>&lt;P&gt;Hi benefitcos,&lt;/P&gt;

&lt;P&gt;Just had the same problem today, when implementing the amMaps at a costumer which does not allow Internet access from the Splunk search head, so I had to setup amMap. The error was exactly the same and after checking the code, I realized that the there was some field missing in the &lt;CODE&gt;stats&lt;/CODE&gt;, so including the field in the &lt;CODE&gt;stats&lt;/CODE&gt; solved this.&lt;/P&gt;

&lt;P&gt;Also be aware that you can use &lt;CODE&gt;mapit&lt;/CODE&gt; in a &lt;CODE&gt;HiddenPostProcess&lt;/CODE&gt; but you must use the the &lt;CODE&gt;stats&lt;/CODE&gt; and all the &lt;CODE&gt;eval&lt;/CODE&gt; commands in the &lt;CODE&gt;HiddenPostProcess&lt;/CODE&gt; otherwise it will not work.&lt;/P&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Tue, 07 Oct 2014 19:52:18 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2014-10-07T19:52:18Z</dc:date>
    <item>
      <title>MapIt doesn't map it</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/MapIt-doesn-t-map-it/m-p/135134#M11303</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Have installed AMMap and Maxmind per instructions here and in documentation. Using this formula:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="Sites*" Preview fromHost!="'10.*'" | rex
"'(?&amp;lt;fromHost&amp;gt;\d+.\d+.\d+.\d+)'"|  stats count by fromHost | head  100 | eval
count_label="Login" |
eval iterator="fromHost" | eval iterator_label="IP" | eval
movie_color="#FF0000" | eval output_file="home_threat_data.xml" | eval
app="amMap" | lookup geoip clientip as fromHost
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm able to generate results (which I can't post without enough 'karma', but trust me, I'm seeing cities, countries, lat, long, region, etc..)&lt;/P&gt;

&lt;P&gt;However, when I use the | mapit command, all of a sudden 'no events were found'. When I run a check of the Splunk logs there are entries which coincides with each | mapit request:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Fri Nov 08 11:31:03 2013 - ERROR - Traceback:Traceback (most recent call last):
  File "D:\splunk\etc\apps\amMap\bin\map_results.py", line 180, in run
    result_dict_list = get_results()
  File "D:\splunk\etc\apps\amMap\bin\map_results.py", line 41, in get_results
    if results[0].has_key("app"):
IndexError: list index out of range
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas on what might be happening? Appreciate any tips!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2013 19:35:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/MapIt-doesn-t-map-it/m-p/135134#M11303</guid>
      <dc:creator>benefitcos</dc:creator>
      <dc:date>2013-11-08T19:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: MapIt doesn't map it</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/MapIt-doesn-t-map-it/m-p/135135#M11304</link>
      <description>&lt;P&gt;hi , i'm having the same issue.&lt;BR /&gt;
if someone can help it would be great.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 11:17:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/MapIt-doesn-t-map-it/m-p/135135#M11304</guid>
      <dc:creator>moneybox</dc:creator>
      <dc:date>2014-01-14T11:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: MapIt doesn't map it</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/MapIt-doesn-t-map-it/m-p/135136#M11305</link>
      <description>&lt;P&gt;Hi benefitcos,&lt;/P&gt;

&lt;P&gt;Just had the same problem today, when implementing the amMaps at a costumer which does not allow Internet access from the Splunk search head, so I had to setup amMap. The error was exactly the same and after checking the code, I realized that the there was some field missing in the &lt;CODE&gt;stats&lt;/CODE&gt;, so including the field in the &lt;CODE&gt;stats&lt;/CODE&gt; solved this.&lt;/P&gt;

&lt;P&gt;Also be aware that you can use &lt;CODE&gt;mapit&lt;/CODE&gt; in a &lt;CODE&gt;HiddenPostProcess&lt;/CODE&gt; but you must use the the &lt;CODE&gt;stats&lt;/CODE&gt; and all the &lt;CODE&gt;eval&lt;/CODE&gt; commands in the &lt;CODE&gt;HiddenPostProcess&lt;/CODE&gt; otherwise it will not work.&lt;/P&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2014 19:52:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/MapIt-doesn-t-map-it/m-p/135136#M11305</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-10-07T19:52:18Z</dc:date>
    </item>
  </channel>
</rss>

