<?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 Unable to connect to Splunk server through python script in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-connect-to-Splunk-server-through-python-script/m-p/498590#M61352</link>
    <description>&lt;P&gt;Hello guys, &lt;BR /&gt;
I have a python script, which collects Host, Port, username, password to create a connection. After this, it will pass the query and fetches the data from splunk. &lt;BR /&gt;
My script is working perfectly if I run the script in local machine with local machine Host (means, Splunk has installed in the same machine)&lt;BR /&gt;
But when I use the same script to connect with splunk which is running in AWS machine, it is unable to create a connection. &lt;/P&gt;

&lt;P&gt;So what can be the issue?&lt;BR /&gt;
SSH certificate? if, Yes, how can I specify this attribute in the script?&lt;/P&gt;

&lt;P&gt;my script has only these:&lt;BR /&gt;
   host = host,&lt;BR /&gt;
            port = port,&lt;BR /&gt;
            username = username,&lt;BR /&gt;
            password = password&lt;/P&gt;

&lt;P&gt;Any other issues?&lt;/P&gt;</description>
    <pubDate>Fri, 20 Mar 2020 23:57:53 GMT</pubDate>
    <dc:creator>marisstella</dc:creator>
    <dc:date>2020-03-20T23:57:53Z</dc:date>
    <item>
      <title>Unable to connect to Splunk server through python script</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-connect-to-Splunk-server-through-python-script/m-p/498590#M61352</link>
      <description>&lt;P&gt;Hello guys, &lt;BR /&gt;
I have a python script, which collects Host, Port, username, password to create a connection. After this, it will pass the query and fetches the data from splunk. &lt;BR /&gt;
My script is working perfectly if I run the script in local machine with local machine Host (means, Splunk has installed in the same machine)&lt;BR /&gt;
But when I use the same script to connect with splunk which is running in AWS machine, it is unable to create a connection. &lt;/P&gt;

&lt;P&gt;So what can be the issue?&lt;BR /&gt;
SSH certificate? if, Yes, how can I specify this attribute in the script?&lt;/P&gt;

&lt;P&gt;my script has only these:&lt;BR /&gt;
   host = host,&lt;BR /&gt;
            port = port,&lt;BR /&gt;
            username = username,&lt;BR /&gt;
            password = password&lt;/P&gt;

&lt;P&gt;Any other issues?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 23:57:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-connect-to-Splunk-server-through-python-script/m-p/498590#M61352</guid>
      <dc:creator>marisstella</dc:creator>
      <dc:date>2020-03-20T23:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to connect to Splunk server through python script</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-connect-to-Splunk-server-through-python-script/m-p/498591#M61353</link>
      <description>&lt;P&gt;are you trying to execute the script on your local machine and connect to a Splunk running in AWS? &lt;/P&gt;

&lt;P&gt;First check that you can create a TCP connection and it's not blocked by firewall:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -vk &lt;A href="https://&amp;lt;username&amp;gt;:&amp;lt;password&amp;gt;@&amp;lt;yourSplunkIP&amp;gt;:8089/" target="test_blank"&gt;https://&amp;lt;username&amp;gt;:&amp;lt;password&amp;gt;@&amp;lt;yourSplunkIP&amp;gt;:8089/&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;for example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; curl -vk &lt;A href="https://marisstella:password@54.1.2.3:8089/" target="test_blank"&gt;https://marisstella:password@54.1.2.3:8089/&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 21 Mar 2020 09:21:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-connect-to-Splunk-server-through-python-script/m-p/498591#M61353</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-03-21T09:21:00Z</dc:date>
    </item>
  </channel>
</rss>

