<?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: Scripted Input: Cannot open file from /myapp/local in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-Cannot-open-file-from-myapp-local/m-p/188085#M37538</link>
    <description>&lt;P&gt;I placed my files under the $SPLUNK_HOME/etc/apps/myapp/&lt;FOLDER name=""&gt; directory. I suppose something is off in my script. Will try to debug it using that command. Thanks again, MuS.&lt;/FOLDER&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Aug 2014 14:53:53 GMT</pubDate>
    <dc:creator>vincenteous</dc:creator>
    <dc:date>2014-08-21T14:53:53Z</dc:date>
    <item>
      <title>Scripted Input: Cannot open file from /myapp/local</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-Cannot-open-file-from-myapp-local/m-p/188083#M37536</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;

&lt;P&gt;I have a perl script which is located in /myapp/bin and a configuration file in /myapp/local. I have added a script stanza inside inputs.conf and the script seems to be successfully invoked except for one thing, the script displays an error on splunkd.log that tells my custom configuration file cannot be opened. I have tried using an absolute path to that file and the result is still the same. Can anyone tell me where did I go wrong?&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2014 09:40:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-Cannot-open-file-from-myapp-local/m-p/188083#M37536</guid>
      <dc:creator>vincenteous</dc:creator>
      <dc:date>2014-08-20T09:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Input: Cannot open file from /myapp/local</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-Cannot-open-file-from-myapp-local/m-p/188084#M37537</link>
      <description>&lt;P&gt;Hi vincenteous,&lt;/P&gt;

&lt;P&gt;did you place this in &lt;CODE&gt;/myapp/..&lt;/CODE&gt; or in &lt;CODE&gt;$SPLUNK_HOME/etc/apps/myapp/..&lt;/CODE&gt;&lt;BR /&gt;
Have a look at the docs about &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/AdvancedDev/ScriptSetup"&gt;scripted inputs&lt;/A&gt; where you also get some hints where to put config files.&lt;BR /&gt;
Another point to mention here: enable debugging in your script and run it like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  $SPLUNK_HOME/bin/splunk cmd $SPLUNK_HOME/etc/apps/myapp/bin/yourscript
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and see what happens.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2014 10:59:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-Cannot-open-file-from-myapp-local/m-p/188084#M37537</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-08-20T10:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Input: Cannot open file from /myapp/local</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-Cannot-open-file-from-myapp-local/m-p/188085#M37538</link>
      <description>&lt;P&gt;I placed my files under the $SPLUNK_HOME/etc/apps/myapp/&lt;FOLDER name=""&gt; directory. I suppose something is off in my script. Will try to debug it using that command. Thanks again, MuS.&lt;/FOLDER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2014 14:53:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-Cannot-open-file-from-myapp-local/m-p/188085#M37538</guid>
      <dc:creator>vincenteous</dc:creator>
      <dc:date>2014-08-21T14:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Input: Cannot open file from /myapp/local</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-Cannot-open-file-from-myapp-local/m-p/188086#M37539</link>
      <description>&lt;P&gt;I just struggled with this and I determined the best to accomplish this task is to include the scripts in the &lt;CODE&gt;$SPLUNK_HOME/bin/scripts&lt;/CODE&gt; folder.  Visibility and permissions become a real pain when placing the scripts in a custom app folder.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2014 19:26:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-Cannot-open-file-from-myapp-local/m-p/188086#M37539</guid>
      <dc:creator>slashnburn</dc:creator>
      <dc:date>2014-08-21T19:26:02Z</dc:date>
    </item>
  </channel>
</rss>

