<?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: How to debug a script based lookup? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-debug-a-script-based-lookup/m-p/119473#M32057</link>
    <description>&lt;P&gt;By default it's not recorded anywhere. What you could do is redirect your script's stderr output to a file and look there:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;f = open("/path/to/some/file","w")
sys.stderr = f
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 25 Jun 2014 12:15:33 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2014-06-25T12:15:33Z</dc:date>
    <item>
      <title>How to debug a script based lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-debug-a-script-based-lookup/m-p/119472#M32056</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;

&lt;P&gt;I have a lookup script, which do not runs in splunk search (doing on the search head). I will only get a:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[indexer] Script for lookup table 'lookupScript' returned error code 1. Results may be incorrect.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Well, I would expect to see any error messages somewhere inside of the logs (/opt/splunk/var/log/splunk/). But I couldn't find anything. Do you have any Idea where I can look for it?&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Peter&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2014 11:56:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-debug-a-script-based-lookup/m-p/119472#M32056</guid>
      <dc:creator>psobisch</dc:creator>
      <dc:date>2014-06-25T11:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a script based lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-debug-a-script-based-lookup/m-p/119473#M32057</link>
      <description>&lt;P&gt;By default it's not recorded anywhere. What you could do is redirect your script's stderr output to a file and look there:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;f = open("/path/to/some/file","w")
sys.stderr = f
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Jun 2014 12:15:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-debug-a-script-based-lookup/m-p/119473#M32057</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-06-25T12:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a script based lookup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-debug-a-script-based-lookup/m-p/119474#M32058</link>
      <description>&lt;P&gt;works, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2014 12:54:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-debug-a-script-based-lookup/m-p/119474#M32058</guid>
      <dc:creator>psobisch</dc:creator>
      <dc:date>2014-06-25T12:54:53Z</dc:date>
    </item>
  </channel>
</rss>

