<?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: running splunk search using python sdk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/running-splunk-search-using-python-sdk/m-p/38385#M178718</link>
    <description>&lt;P&gt;What error is the output? Do you have made ​​well Preferences?&lt;BR /&gt;
For example, this sample program work?&lt;/P&gt;

&lt;P&gt;Please to save and run the file with the appropriate name by setting the HOST,USERNAME,PASSWORD.&lt;BR /&gt;
---------(sample program)------------------&lt;BR /&gt;
import splunklib.client as client&lt;/P&gt;

&lt;P&gt;HOST = "hostxxxx"&lt;BR /&gt;
PORT = 8089&lt;BR /&gt;
USERNAME = "username"&lt;BR /&gt;
PASSWORD = "password"&lt;/P&gt;

&lt;P&gt;try:&lt;BR /&gt;
    service = client.connect(&lt;BR /&gt;
        host=HOST,&lt;BR /&gt;
        port=PORT,&lt;BR /&gt;
        username=USERNAME,&lt;BR /&gt;
        password=PASSWORD)&lt;BR /&gt;
    print "connect OK!"&lt;BR /&gt;
except:&lt;/P&gt;

&lt;H2&gt;    print "connect NG!"&lt;/H2&gt;</description>
    <pubDate>Mon, 19 Aug 2013 07:57:54 GMT</pubDate>
    <dc:creator>HiroshiSatoh</dc:creator>
    <dc:date>2013-08-19T07:57:54Z</dc:date>
    <item>
      <title>running splunk search using python sdk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/running-splunk-search-using-python-sdk/m-p/38384#M178717</link>
      <description>&lt;P&gt;hi,&lt;BR /&gt;
i have installed python sdk and in ./splunkrc file given user name and passwd so that it can connect my splunk ..i have a index name called test. so what should be my search so that by using my python sdk i can call that index content&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 05:34:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/running-splunk-search-using-python-sdk/m-p/38384#M178717</guid>
      <dc:creator>harsh1734</dc:creator>
      <dc:date>2013-08-19T05:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: running splunk search using python sdk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/running-splunk-search-using-python-sdk/m-p/38385#M178718</link>
      <description>&lt;P&gt;What error is the output? Do you have made ​​well Preferences?&lt;BR /&gt;
For example, this sample program work?&lt;/P&gt;

&lt;P&gt;Please to save and run the file with the appropriate name by setting the HOST,USERNAME,PASSWORD.&lt;BR /&gt;
---------(sample program)------------------&lt;BR /&gt;
import splunklib.client as client&lt;/P&gt;

&lt;P&gt;HOST = "hostxxxx"&lt;BR /&gt;
PORT = 8089&lt;BR /&gt;
USERNAME = "username"&lt;BR /&gt;
PASSWORD = "password"&lt;/P&gt;

&lt;P&gt;try:&lt;BR /&gt;
    service = client.connect(&lt;BR /&gt;
        host=HOST,&lt;BR /&gt;
        port=PORT,&lt;BR /&gt;
        username=USERNAME,&lt;BR /&gt;
        password=PASSWORD)&lt;BR /&gt;
    print "connect OK!"&lt;BR /&gt;
except:&lt;/P&gt;

&lt;H2&gt;    print "connect NG!"&lt;/H2&gt;</description>
      <pubDate>Mon, 19 Aug 2013 07:57:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/running-splunk-search-using-python-sdk/m-p/38385#M178718</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2013-08-19T07:57:54Z</dc:date>
    </item>
  </channel>
</rss>

