<?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: Lookups with a python script in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Lookups-with-a-python-script/m-p/11020#M96465</link>
    <description>&lt;P&gt;Thanks Gerald, do you have an example if you want to return more than one field based on your lookup?&lt;/P&gt;</description>
    <pubDate>Wed, 07 Apr 2010 15:08:21 GMT</pubDate>
    <dc:creator>Marinus</dc:creator>
    <dc:date>2010-04-07T15:08:21Z</dc:date>
    <item>
      <title>Lookups with a python script</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Lookups-with-a-python-script/m-p/11018#M96463</link>
      <description>&lt;P&gt;The transforms spec indicated that you can do a lookup using a python script.
Do you have an example?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2010 02:27:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Lookups-with-a-python-script/m-p/11018#M96463</guid>
      <dc:creator>Marinus</dc:creator>
      <dc:date>2010-04-07T02:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Lookups with a python script</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Lookups-with-a-python-script/m-p/11019#M96464</link>
      <description>&lt;P&gt;There is an example in &lt;CODE&gt;$SPLUNK_HOME/etc/system/bin/external_lookup.py&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2010 05:17:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Lookups-with-a-python-script/m-p/11019#M96464</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-04-07T05:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Lookups with a python script</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Lookups-with-a-python-script/m-p/11020#M96465</link>
      <description>&lt;P&gt;Thanks Gerald, do you have an example if you want to return more than one field based on your lookup?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2010 15:08:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Lookups-with-a-python-script/m-p/11020#M96465</guid>
      <dc:creator>Marinus</dc:creator>
      <dc:date>2010-04-07T15:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Lookups with a python script</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Lookups-with-a-python-script/m-p/11021#M96466</link>
      <description>&lt;P&gt;Not really, but it's the same. All you do is add another column to the output CSV and add the extra field in the appropriate places in the configuration. Basically, Splunk passes a CSV file in to the script, with lookup values in the input columns/fields and null values in the output columns/fields, and your script should write out a CSV with all the fields filled in.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2010 00:18:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Lookups-with-a-python-script/m-p/11021#M96466</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-04-08T00:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Lookups with a python script</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Lookups-with-a-python-script/m-p/11022#M96467</link>
      <description>&lt;P&gt;For anyone interested in a database lookup script example, I have posted one here:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://answers.splunk.com/questions/2580/i-want-sample-code-to-connect-to-oracle-database-and-lookup-a-table-at-search-ti/2830#2830" rel="nofollow"&gt;I want sample code to connect to Oracle database, and lookup a table at search time&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 26 May 2010 02:47:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Lookups-with-a-python-script/m-p/11022#M96467</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-05-26T02:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Lookups with a python script</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Lookups-with-a-python-script/m-p/11023#M96468</link>
      <description>&lt;P&gt;I think if someone has already developed similar article to connect to DB2 database and lookup table at search time then please publish it otherwise i am working on it and will be glad to publish it if i get little help from Splunk Forums on how to integrate my working copy under Python 2.7 with Splunk Python 2.6&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2010 23:11:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Lookups-with-a-python-script/m-p/11023#M96468</guid>
      <dc:creator>bansi</dc:creator>
      <dc:date>2010-12-20T23:11:30Z</dc:date>
    </item>
  </channel>
</rss>

