<?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 Generate lookup files via webservices in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Generate-lookup-files-via-webservices/m-p/67493#M16861</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I want to avoid to copy via scp files on my cloudsearch for using them in lookups.&lt;BR /&gt;
Is it possible to create lookup files by using API or some other webservices?&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jun 2012 10:08:31 GMT</pubDate>
    <dc:creator>nebel</dc:creator>
    <dc:date>2012-06-05T10:08:31Z</dc:date>
    <item>
      <title>Generate lookup files via webservices</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generate-lookup-files-via-webservices/m-p/67493#M16861</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I want to avoid to copy via scp files on my cloudsearch for using them in lookups.&lt;BR /&gt;
Is it possible to create lookup files by using API or some other webservices?&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2012 10:08:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generate-lookup-files-via-webservices/m-p/67493#M16861</guid>
      <dc:creator>nebel</dc:creator>
      <dc:date>2012-06-05T10:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Generate lookup files via webservices</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generate-lookup-files-via-webservices/m-p/67494#M16862</link>
      <description>&lt;P&gt;You have two options as I see it. &lt;/P&gt;

&lt;P&gt;You either have to fetch the data for lookup from outside of Splunk using something like SCP + some parsting or call a python program to look the data up in real time. &lt;/P&gt;

&lt;P&gt;You need to consider the performance impact. You could always implement some kind of caching strategy with your python program if the data is rather static.&lt;/P&gt;

&lt;P&gt;Here's an example props and transform&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mylookup]
LOOKUP-bucket_lookup=lookup_buckets narrative account OUTPUT bucket
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;PRE&gt;&lt;CODE&gt;
[lookup_buckets] 
external_type = python external_cmd = bucket_lookup.py fields_list = narrative,account,bucket
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you are planning to call a SOAP web service from Python I'd suggest you use SUDS.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2012 10:27:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generate-lookup-files-via-webservices/m-p/67494#M16862</guid>
      <dc:creator>Marinus</dc:creator>
      <dc:date>2012-06-05T10:27:22Z</dc:date>
    </item>
  </channel>
</rss>

