<?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: geoip lookup script fails with error code 1 in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/geoip-lookup-script-fails-with-error-code-1/m-p/84581#M21561</link>
    <description>&lt;P&gt;Nope...  not using distributed search.&lt;/P&gt;</description>
    <pubDate>Thu, 23 May 2013 21:09:53 GMT</pubDate>
    <dc:creator>responsys_cm</dc:creator>
    <dc:date>2013-05-23T21:09:53Z</dc:date>
    <item>
      <title>geoip lookup script fails with error code 1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/geoip-lookup-script-fails-with-error-code-1/m-p/84579#M21559</link>
      <description>&lt;P&gt;I'm trying to use the geoip external lookup script, the one that uses the MAXMIND database.&lt;/P&gt;

&lt;P&gt;When I run my search, I get the "Script for lookup table 'geoip' returned error code 1.  Results may be incorrect."&lt;/P&gt;

&lt;P&gt;The search is:&lt;/P&gt;

&lt;P&gt;sourcetype=logentry action=login NOT accountname=SysAdmin NOT accountname=ops* NOT username=SYS* NOT src_ip=NULL NOT src_ip=10.* | stats count by accountname,src_ip,username | lookup geoip clientip AS src_ip OUTPUT client_country client_org  &lt;/P&gt;

&lt;P&gt;I get the same error if I remove the stats command from the pipeline.  I can pipe that to something like | search NOT client_country=* to try and find the first result that had a failed lookup.  But if I then narrow the initial search to capture that event, it will do the resolution fine.&lt;/P&gt;

&lt;P&gt;How can I troubleshoot this?  We have a fair number of scheduled searches that do geoip lookups.  What happens if two searches try and execute that python script at the same time?  It seems to me that the problem happens when the volume of events in the search results are high rather than some kind of bad data screwing up the script.&lt;/P&gt;

&lt;P&gt;I'm on Splunk 4.3.2, build 123586.  &lt;/P&gt;

&lt;P&gt;Thx.&lt;/P&gt;

&lt;P&gt;C&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:59:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/geoip-lookup-script-fails-with-error-code-1/m-p/84579#M21559</guid>
      <dc:creator>responsys_cm</dc:creator>
      <dc:date>2020-09-28T11:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: geoip lookup script fails with error code 1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/geoip-lookup-script-fails-with-error-code-1/m-p/84580#M21560</link>
      <description>&lt;P&gt;It sounds like you are using distributed search. It seems that the app needs to be installed on all the indexers as well. Please also reference the following link: &lt;A href="http://splunk-base.splunk.com/answers/75598/google-maps-where-to-install"&gt;http://splunk-base.splunk.com/answers/75598/google-maps-where-to-install&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2013 20:26:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/geoip-lookup-script-fails-with-error-code-1/m-p/84580#M21560</guid>
      <dc:creator>mlulmer</dc:creator>
      <dc:date>2013-05-23T20:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: geoip lookup script fails with error code 1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/geoip-lookup-script-fails-with-error-code-1/m-p/84581#M21561</link>
      <description>&lt;P&gt;Nope...  not using distributed search.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2013 21:09:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/geoip-lookup-script-fails-with-error-code-1/m-p/84581#M21561</guid>
      <dc:creator>responsys_cm</dc:creator>
      <dc:date>2013-05-23T21:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: geoip lookup script fails with error code 1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/geoip-lookup-script-fails-with-error-code-1/m-p/84582#M21562</link>
      <description>&lt;P&gt;what happens if you run&lt;/P&gt;

&lt;P&gt;sourcetype=logentry action=login NOT accountname=SysAdmin NOT accountname=ops NOT username=SYS NOT src_ip=NULL NOT src_ip=10.* | stats count by accountname,src_ip,username | lookup local=true geoip clientip AS src_ip OUTPUT client_country client_org&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:58:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/geoip-lookup-script-fails-with-error-code-1/m-p/84582#M21562</guid>
      <dc:creator>cramasta</dc:creator>
      <dc:date>2020-09-28T13:58:12Z</dc:date>
    </item>
  </channel>
</rss>

