<?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: python sdk and realtime search? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/python-sdk-and-realtime-search/m-p/14173#M61</link>
    <description>&lt;P&gt;There is also a new Splunk Python SDK on GitHub.  You can access it here:  &lt;A href="https://github.com/splunk/splunk-sdk-python"&gt;https://github.com/splunk/splunk-sdk-python&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;There are a number of search examples in the SDK.  &lt;/P&gt;

&lt;P&gt;Any questions - &lt;A href="mailto:psanford@splunk.com"&gt;psanford@splunk.com&lt;/A&gt; or ping us on Twitter:  @splunkdev  &lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2011 17:01:32 GMT</pubDate>
    <dc:creator>psanford_splunk</dc:creator>
    <dc:date>2011-09-28T17:01:32Z</dc:date>
    <item>
      <title>python sdk and realtime search?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/python-sdk-and-realtime-search/m-p/14170#M58</link>
      <description>&lt;P&gt;I am trying to get realtime streaming results using the python sdk.  The code I was using looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;auth.getSessionKey('admin','changeme')
args = {"earliestTime": 0, "latestTime": 0}
job = search.dispatch(' search *',**args)

for event in job:
  print  event['_raw']

print search
job.cancel()
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;No errors, but no results either.  What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2010 11:38:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/python-sdk-and-realtime-search/m-p/14170#M58</guid>
      <dc:creator>bfaber</dc:creator>
      <dc:date>2010-05-25T11:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: python sdk and realtime search?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/python-sdk-and-realtime-search/m-p/14171#M59</link>
      <description>&lt;P&gt;Have you tried adding &lt;CODE&gt;rt&lt;/CODE&gt; to your earliest/lastest times?&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2010 02:49:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/python-sdk-and-realtime-search/m-p/14171#M59</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-05-26T02:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: python sdk and realtime search?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/python-sdk-and-realtime-search/m-p/14172#M60</link>
      <description>&lt;P&gt;Using the Job Inspector, I was able to reverse the kwargs...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;args = {'time_format': '%s.%Q', 'search': 'search *', 'required_field_list': '*', 'max_count': '10000', 'ui_dispatch_app': 'search', 'latest_time': 'rt', 'status_buckets': '300', 'ui_dispatch_view': 'flashtimeline', 'earliest_time': 'rt-1m', 'auto_cancel': '100'}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This changes the search line to be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;job = search.dispatch(**args)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This all seems to work, but is probably more complex than needed.  &lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2010 08:49:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/python-sdk-and-realtime-search/m-p/14172#M60</guid>
      <dc:creator>bfaber</dc:creator>
      <dc:date>2010-05-26T08:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: python sdk and realtime search?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/python-sdk-and-realtime-search/m-p/14173#M61</link>
      <description>&lt;P&gt;There is also a new Splunk Python SDK on GitHub.  You can access it here:  &lt;A href="https://github.com/splunk/splunk-sdk-python"&gt;https://github.com/splunk/splunk-sdk-python&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;There are a number of search examples in the SDK.  &lt;/P&gt;

&lt;P&gt;Any questions - &lt;A href="mailto:psanford@splunk.com"&gt;psanford@splunk.com&lt;/A&gt; or ping us on Twitter:  @splunkdev  &lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2011 17:01:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/python-sdk-and-realtime-search/m-p/14173#M61</guid>
      <dc:creator>psanford_splunk</dc:creator>
      <dc:date>2011-09-28T17:01:32Z</dc:date>
    </item>
  </channel>
</rss>

