<?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 Scripted input strange behavior in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Scripted-input-strange-behavior/m-p/461597#M8398</link>
    <description>&lt;P&gt;Good to all,&lt;BR /&gt;I have a strange behavior of a python script. The specific python script collects some AWS data. if I run it as it is, it works nicely. If I run through Splunk's python (bin/splunk python) it also runs. If I schedule it, I get errors related to access to AWS.&lt;BR /&gt;Especially with the second try (via Splunk's python) I had the impression that I could "emulate" how it will run when it is going to be enabled but appears that that is not the case.&lt;BR /&gt;Is there any other way to troubleshoot this?&lt;/P&gt;</description>
    <pubDate>Sun, 07 Jun 2020 18:09:32 GMT</pubDate>
    <dc:creator>a_naoum</dc:creator>
    <dc:date>2020-06-07T18:09:32Z</dc:date>
    <item>
      <title>Scripted input strange behavior</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Scripted-input-strange-behavior/m-p/461597#M8398</link>
      <description>&lt;P&gt;Good to all,&lt;BR /&gt;I have a strange behavior of a python script. The specific python script collects some AWS data. if I run it as it is, it works nicely. If I run through Splunk's python (bin/splunk python) it also runs. If I schedule it, I get errors related to access to AWS.&lt;BR /&gt;Especially with the second try (via Splunk's python) I had the impression that I could "emulate" how it will run when it is going to be enabled but appears that that is not the case.&lt;BR /&gt;Is there any other way to troubleshoot this?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 18:09:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Scripted-input-strange-behavior/m-p/461597#M8398</guid>
      <dc:creator>a_naoum</dc:creator>
      <dc:date>2020-06-07T18:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted input strange behavior</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Scripted-input-strange-behavior/m-p/461598#M8399</link>
      <description>&lt;P&gt;Hello @a_naoum&lt;/P&gt;

&lt;P&gt;a script running under $SPLUNK_HOME/bin/splunk cmd python should have similar environment as your scheduled script, so probably you run it as a different user (root?).&lt;/P&gt;

&lt;P&gt;Use the common way to troubleshoot, just add some print here and there, especially before the code part where AWS request is done, additionally print the raw response.&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 11:11:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Scripted-input-strange-behavior/m-p/461598#M8399</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-05-24T11:11:05Z</dc:date>
    </item>
  </channel>
</rss>

