<?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: Windows Script Input (something simple i'm sure) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Script-Input-something-simple-i-m-sure/m-p/89504#M18581</link>
    <description>&lt;P&gt;Not sure what I did, but after playing around with my python script, I tried it again and it worked. But thank-you for you help, I will note the last comment, I'm sure I will need it&lt;/P&gt;</description>
    <pubDate>Wed, 12 Oct 2011 10:57:26 GMT</pubDate>
    <dc:creator>hewhib</dc:creator>
    <dc:date>2011-10-12T10:57:26Z</dc:date>
    <item>
      <title>Windows Script Input (something simple i'm sure)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Script-Input-something-simple-i-m-sure/m-p/89500#M18577</link>
      <description>&lt;P&gt;Guys, &lt;/P&gt;

&lt;P&gt;Just wondering if you could help me...&lt;/P&gt;

&lt;P&gt;When I go to add a scripted input for my Splunk App I get the following error message:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Encountered the following error while trying to save: In handler 'script': The command path `"c:\program files\splunk\etc\apps\winFW\bin\rules.py"` is not allowed for scripted inputs.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Using the following command path:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"c:\program files\splunk\etc\apps\winFW\bin\rules.py"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried it with and without the " , and tried the path as a above and as it appears on the command line (i.e. &lt;CODE&gt;"C:\Program Files\Splunk\etc\apps\winFW\bin\rules.py"&lt;/CODE&gt;) Can someone explain where I am going wrong please.&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2011 13:47:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-Script-Input-something-simple-i-m-sure/m-p/89500#M18577</guid>
      <dc:creator>hewhib</dc:creator>
      <dc:date>2011-10-11T13:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Script Input (something simple i'm sure)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Script-Input-something-simple-i-m-sure/m-p/89501#M18578</link>
      <description>&lt;P&gt;I have one working that looks very similar to this in my inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://$SPLUNK_HOME\etc\apps\app_name\bin\script.bat]
disabled = false
index = someindex
interval = #####
sourcetype = somesourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps! &lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2011 16:36:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-Script-Input-something-simple-i-m-sure/m-p/89501#M18578</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2011-10-11T16:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Script Input (something simple i'm sure)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Script-Input-something-simple-i-m-sure/m-p/89502#M18579</link>
      <description>&lt;P&gt;in your inputs.conf file, I'm assuming you have a batch file not a python script? or do you have a batch file calling the python script.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2011 17:13:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-Script-Input-something-simple-i-m-sure/m-p/89502#M18579</guid>
      <dc:creator>hewhib</dc:creator>
      <dc:date>2011-10-11T17:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Script Input (something simple i'm sure)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Script-Input-something-simple-i-m-sure/m-p/89503#M18580</link>
      <description>&lt;P&gt;Its just a batch file. If your using a python script it should be fine too, just be sure your paths are configured so that Windows understands. &lt;/P&gt;

&lt;P&gt;Something like "stuff = open(os.path.join(os.environ["SPLUNK_HOME"], 'etc', 'apps', 'app_name', 'bin', 'scripts', 'yourscript.py'),'r')" would do the trick.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:58:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-Script-Input-something-simple-i-m-sure/m-p/89503#M18580</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2020-09-28T09:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Script Input (something simple i'm sure)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Script-Input-something-simple-i-m-sure/m-p/89504#M18581</link>
      <description>&lt;P&gt;Not sure what I did, but after playing around with my python script, I tried it again and it worked. But thank-you for you help, I will note the last comment, I'm sure I will need it&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2011 10:57:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-Script-Input-something-simple-i-m-sure/m-p/89504#M18581</guid>
      <dc:creator>hewhib</dc:creator>
      <dc:date>2011-10-12T10:57:26Z</dc:date>
    </item>
  </channel>
</rss>

