<?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: Need help with python script to log into Splunk Cloud in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-python-script-to-log-into-Splunk-Cloud/m-p/658894#M227559</link>
    <description>&lt;P&gt;Unfortunately it doesn't give me one.&amp;nbsp; So I'm not positive what's going on.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2023 17:17:32 GMT</pubDate>
    <dc:creator>NanSplk01</dc:creator>
    <dc:date>2023-09-27T17:17:32Z</dc:date>
    <item>
      <title>Need help with python script to log into Splunk Cloud</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-python-script-to-log-into-Splunk-Cloud/m-p/658883#M227552</link>
      <description>&lt;P&gt;I have the following script, but it keeps erroring out.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;def&lt;/SPAN&gt; &lt;SPAN&gt;connect_to_splunk&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;username&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;password&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;host&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;A href="http://xxxxxxxx.splunkcloud.com" target="_blank"&gt;http://xxxxxxxx.splunkcloud.com&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;port&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'8089'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;owner&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'admin'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;app&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'search'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;sharing&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'user'&lt;/SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; service&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;client.connect(&lt;/SPAN&gt;&lt;SPAN&gt;username&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;username,&lt;/SPAN&gt;&lt;SPAN&gt;password&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;password,&lt;/SPAN&gt;&lt;SPAN&gt;host&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;host,&lt;/SPAN&gt;&lt;SPAN&gt;port&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;port,&lt;/SPAN&gt;&lt;SPAN&gt;owner&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;owner,&lt;/SPAN&gt;&lt;SPAN&gt;app&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'search'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;sharing&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;sharing)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; splunk_service:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"Splunk login successful"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"......................"&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;except&lt;/SPAN&gt; &lt;SPAN&gt;Exception&lt;/SPAN&gt; &lt;SPAN&gt;as&lt;/SPAN&gt;&lt;SPAN&gt; e:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&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IV&gt;&lt;SPAN&gt;There is no error from the debugger (Using Visual Studio).&amp;nbsp; Would appreciate any assistance.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Sep 2023 16:01:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-python-script-to-log-into-Splunk-Cloud/m-p/658883#M227552</guid>
      <dc:creator>NanSplk01</dc:creator>
      <dc:date>2023-09-27T16:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with python script to log into Splunk Cloud</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-python-script-to-log-into-Splunk-Cloud/m-p/658892#M227558</link>
      <description>&lt;P&gt;What is the error?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 17:15:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-python-script-to-log-into-Splunk-Cloud/m-p/658892#M227558</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-09-27T17:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with python script to log into Splunk Cloud</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-python-script-to-log-into-Splunk-Cloud/m-p/658894#M227559</link>
      <description>&lt;P&gt;Unfortunately it doesn't give me one.&amp;nbsp; So I'm not positive what's going on.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 17:17:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-python-script-to-log-into-Splunk-Cloud/m-p/658894#M227559</guid>
      <dc:creator>NanSplk01</dc:creator>
      <dc:date>2023-09-27T17:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with python script to log into Splunk Cloud</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-python-script-to-log-into-Splunk-Cloud/m-p/658897#M227560</link>
      <description>&lt;P&gt;We don't know what's going on, either.&amp;nbsp; What makes you think it's "erroring out" if there are no errors?&lt;/P&gt;&lt;P&gt;You may have to add some debugging code to the script so it tells you more about what is happening.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 17:51:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-python-script-to-log-into-Splunk-Cloud/m-p/658897#M227560</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-09-27T17:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with python script to log into Splunk Cloud</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-python-script-to-log-into-Splunk-Cloud/m-p/658898#M227561</link>
      <description>&lt;P&gt;I will test it again later today and let you know if I then see an error.&amp;nbsp; I know the library I wanted to bring in splunklib did not exist.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 17:55:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-python-script-to-log-into-Splunk-Cloud/m-p/658898#M227561</guid>
      <dc:creator>NanSplk01</dc:creator>
      <dc:date>2023-09-27T17:55:29Z</dc:date>
    </item>
  </channel>
</rss>

